Table of Contents

Class SwitchSection

Namespace
ICSharpCode.Decompiler.CSharp.Syntax
Assembly
ICSharpCode.Decompiler.dll
public class SwitchSection : AstNode, IAnnotatable, IFreezable, INode, ICloneable
Inheritance
SwitchSection
Implements
Inherited Members
Extension Methods

Constructors

SwitchSection()

public SwitchSection()

Fields

CaseLabelRole

public static readonly Role<CaseLabel> CaseLabelRole

Field Value

Role<CaseLabel>

Properties

CaseLabels

public AstNodeCollection<CaseLabel> CaseLabels { get; }

Property Value

AstNodeCollection<CaseLabel>

NodeType

public override NodeType NodeType { get; }

Property Value

NodeType

Statements

public AstNodeCollection<Statement> Statements { get; }

Property Value

AstNodeCollection<Statement>

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

Operators

implicit operator SwitchSection(Pattern)

public static implicit operator SwitchSection(Pattern pattern)

Parameters

pattern Pattern

Returns

SwitchSection