Skip to main content

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

ConstructorSummary
IfStatementCascadeInfo(IfStatementSyntax)Initializes a new instance of IfStatementCascadeInfo.

Properties

PropertySummary
CountGets a number of 'if' statements plus optional 'else' clause at the end of a cascade.
EndsWithElseDetermines whether the cascade ends with 'else' clause.
EndsWithIfDetermines whether the cascade ends with 'if' statement.
IfStatementGets the topmost 'if' statement.
IsSimpleIfDetermines whether the cascade consists of single 'if' statement.
IsSimpleIfElseDetermines whether the cascade consists of single if-else.
LastGets a last 'if' or 'else' in a cascade.

Methods

MethodSummary
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

OperatorSummary
Equality(IfStatementCascadeInfo, IfStatementCascadeInfo)
Inequality(IfStatementCascadeInfo, IfStatementCascadeInfo)