IfStatementCascadeInfo Struct
Namespace: Roslynator.CSharp
Assembly: Roslynator.CSharp.dll
Summarizes information about IfStatementCascade.
public readonly struct IfStatementCascadeInfo : IEquatable<Roslynator.CSharp.IfStatementCascadeInfo>
Inheritance
Object → ValueType → IfStatementCascadeInfo
Implements
Constructors
Constructor | Summary |
---|---|
IfStatementCascadeInfo(IfStatementSyntax) | Initializes a new instance of IfStatementCascadeInfo. |
Properties
Property | Summary |
---|---|
Count | Gets a number of 'if' statements plus optional 'else' clause at the end of a cascade. |
EndsWithElse | Determines whether the cascade ends with 'else' clause. |
EndsWithIf | Determines whether the cascade ends with 'if' statement. |
IfStatement | Gets the topmost 'if' statement. |
IsSimpleIf | Determines whether the cascade consists of single 'if' statement. |
IsSimpleIfElse | Determines whether the cascade consists of single if-else. |
Last | Gets a last 'if' or 'else' in a cascade. |
Methods
Method | Summary |
---|---|
Equals(IfStatementCascadeInfo) | Determines whether this instance is equal to another object of the same type. (Implements IEquatable<IfStatementCascadeInfo>.Equals) |
Equals(Object) | Determines whether this instance and a specified object are equal. (Overrides ValueType.Equals) |
GetHashCode() | Returns the hash code for this instance. (Overrides ValueType.GetHashCode) |
GetType() | (Inherited from Object) |
MemberwiseClone() | (Inherited from Object) |
ToString() | Returns the string representation of the underlying syntax, not including its leading and trailing trivia. (Overrides ValueType.ToString) |
Operators
Operator | Summary |
---|---|
Equality(IfStatementCascadeInfo, IfStatementCascadeInfo) | |
Inequality(IfStatementCascadeInfo, IfStatementCascadeInfo) |