Table of Contents

Class CSharpTokenNode

Namespace
ICSharpCode.Decompiler.CSharp.Syntax
Assembly
ICSharpCode.Decompiler.dll

Represents a token in C#. Note that the type of the token is defined through the TokenRole.

public class CSharpTokenNode : AstNode, IAnnotatable, IFreezable, INode, ICloneable
Inheritance
CSharpTokenNode
Implements
Derived
Inherited Members
Extension Methods

Remarks

In all non null c# token nodes the Role of a CSharpToken must be a TokenRole.

Constructors

CSharpTokenNode(TextLocation, TokenRole)

public CSharpTokenNode(TextLocation location, TokenRole role)

Parameters

location TextLocation
role TokenRole

Fields

Null

public static readonly CSharpTokenNode Null

Field Value

CSharpTokenNode

Properties

EndLocation

public override TextLocation EndLocation { get; }

Property Value

TextLocation

NodeType

public override NodeType NodeType { get; }

Property Value

NodeType

StartLocation

public override TextLocation StartLocation { get; }

Property Value

TextLocation

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

ToString(CSharpFormattingOptions)

public override string ToString(CSharpFormattingOptions formattingOptions)

Parameters

formattingOptions CSharpFormattingOptions

Returns

string