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
Property | Summary |
---|---|
BinaryExpression | The binary expression. |
Span | The span that represents selected expressions. |
Methods
Method | Summary |
---|---|
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
Operator | Summary |
---|---|
Equality(ExpressionChain, ExpressionChain) | |
Inequality(ExpressionChain, ExpressionChain) |
Explicit Interface Implementations
Member | Summary |
---|---|
IEnumerable.GetEnumerator() | |
IEnumerable<ExpressionSyntax>.GetEnumerator() |
Structs
Struct | Summary |
---|---|
Enumerator | |
Reversed | Enables to enumerate expressions of ExpressionChain in a reversed order. |