Class SwitchStatement
- Namespace
- ICSharpCode.Decompiler.CSharp.Syntax
- Assembly
- ICSharpCode.Decompiler.dll
switch (Expression) { SwitchSections }
public class SwitchStatement : Statement, IAnnotatable, IFreezable, INode, ICloneable
- Inheritance
-
SwitchStatement
- Implements
- Inherited Members
- Extension Methods
Constructors
SwitchStatement()
public SwitchStatement()
Fields
SwitchKeywordRole
public static readonly TokenRole SwitchKeywordRole
Field Value
SwitchSectionRole
public static readonly Role<SwitchSection> SwitchSectionRole
Field Value
Properties
Expression
public Expression Expression { get; set; }
Property Value
LBraceToken
public CSharpTokenNode LBraceToken { get; }
Property Value
LParToken
public CSharpTokenNode LParToken { get; }
Property Value
RBraceToken
public CSharpTokenNode RBraceToken { get; }
Property Value
RParToken
public CSharpTokenNode RParToken { get; }
Property Value
SwitchSections
public AstNodeCollection<SwitchSection> 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)