Class CaseLabel
- Namespace
- ICSharpCode.Decompiler.CSharp.Syntax
- Assembly
- ICSharpCode.Decompiler.dll
public class CaseLabel : AstNode, IAnnotatable, IFreezable, INode, ICloneable
- Inheritance
-
CaseLabel
- Implements
- Inherited Members
- Extension Methods
Constructors
CaseLabel()
public CaseLabel()
CaseLabel(Expression)
public CaseLabel(Expression expression)
Parameters
expression
Expression
Fields
CaseKeywordRole
public static readonly TokenRole CaseKeywordRole
Field Value
DefaultKeywordRole
public static readonly TokenRole DefaultKeywordRole
Field Value
Properties
ColonToken
public CSharpTokenNode ColonToken { get; }
Property Value
Expression
Gets or sets the expression. The expression can be null - if the expression is null, it's the default switch section.
public Expression Expression { get; set; }
Property Value
NodeType
public override NodeType NodeType { 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)