Table of Contents

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

TokenRole

DefaultKeywordRole

public static readonly TokenRole DefaultKeywordRole

Field Value

TokenRole

Properties

ColonToken

public CSharpTokenNode ColonToken { get; }

Property Value

CSharpTokenNode

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

Expression

NodeType

public override NodeType NodeType { get; }

Property Value

NodeType

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)

Parameters

other AstNode
match Match

Returns

bool