Class SwitchExpression
- Namespace
- ICSharpCode.Decompiler.CSharp.Syntax
- Assembly
- ICSharpCode.Decompiler.dll
Expression switch { SwitchSections }
public class SwitchExpression : Expression, IAnnotatable, IFreezable, INode, ICloneable
- Inheritance
-
SwitchExpression
- Implements
- Inherited Members
- Extension Methods
Constructors
SwitchExpression()
public SwitchExpression()
Fields
SwitchKeywordRole
public static readonly TokenRole SwitchKeywordRole
Field Value
SwitchSectionRole
public static readonly Role<SwitchExpressionSection> SwitchSectionRole
Field Value
Properties
Expression
public Expression Expression { get; set; }
Property Value
LBraceToken
public CSharpTokenNode LBraceToken { get; }
Property Value
RBraceToken
public CSharpTokenNode RBraceToken { get; }
Property Value
SwitchSections
public AstNodeCollection<SwitchExpressionSection> SwitchSections { get; }
Property Value
SwitchToken
public CSharpTokenNode SwitchToken { get; }
Property Value
Methods
AcceptVisitor(IAstVisitor)
public override void AcceptVisitor(IAstVisitor visitor)
Parameters
visitor
IAstVisitor
AcceptVisitor<T>(IAstVisitor<T>)
public override T AcceptVisitor<T>(IAstVisitor<T> visitor)
Parameters
visitor
IAstVisitor<T>
Returns
- T
Type Parameters
T
AcceptVisitor<T, S>(IAstVisitor<T, S>, T)
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
Parameters
visitor
IAstVisitor<T, S>data
T
Returns
- S
Type Parameters
T
S
DoMatch(AstNode, Match)
protected override bool DoMatch(AstNode other, Match match)