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
TextLocationrole
TokenRole
Fields
Null
public static readonly CSharpTokenNode Null
Field Value
Properties
EndLocation
public override TextLocation EndLocation { get; }
Property Value
NodeType
public override NodeType NodeType { get; }
Property Value
StartLocation
public override TextLocation StartLocation { 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)
Parameters
Returns
ToString(CSharpFormattingOptions)
public override string ToString(CSharpFormattingOptions formattingOptions)
Parameters
formattingOptions
CSharpFormattingOptions