Skip to main content

ExpressionChain Struct

Namespace: Roslynator.CSharp

Assembly: Roslynator.CSharp.dll

Enables to enumerate expressions of a binary expression and expressions of nested binary expressions of the same kind as parent binary expression.

public readonly struct ExpressionChain : IEquatable<Roslynator.CSharp.ExpressionChain>,
System.Collections.Generic.IEnumerable<Microsoft.CodeAnalysis.CSharp.Syntax.ExpressionSyntax>

Inheritance

Object ValueType ExpressionChain

Implements

Properties

PropertySummary
BinaryExpressionThe binary expression.
SpanThe span that represents selected expressions.

Methods

MethodSummary
Equals(ExpressionChain)Determines whether this instance is equal to another object of the same type. (Implements IEquatable<ExpressionChain>.Equals)
Equals(Object)Determines whether this instance and a specified object are equal. (Overrides ValueType.Equals)
GetEnumerator()Gets the enumerator for the expressions.
GetHashCode()Returns the hash code for this instance. (Overrides ValueType.GetHashCode)
GetType()(Inherited from Object)
MemberwiseClone()(Inherited from Object)
Reverse()Returns a chain which contains all expressions of ExpressionChain in reversed order.
ToString()Returns the string representation of the expressions, not including its leading and trailing trivia. (Overrides ValueType.ToString)

Operators

OperatorSummary
Equality(ExpressionChain, ExpressionChain)
Inequality(ExpressionChain, ExpressionChain)

Explicit Interface Implementations

MemberSummary
IEnumerable.GetEnumerator()
IEnumerable<ExpressionSyntax>.GetEnumerator()

Structs

StructSummary
Enumerator
ReversedEnables to enumerate expressions of ExpressionChain in a reversed order.