Class KeywordSyntax
Represents the keyword token in CIL assembler.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: CilTools.Syntax
Assembly: CilTools.BytecodeAnalysis.dll
Syntax
public class KeywordSyntax : SyntaxNode
Remarks
The keyword is a special sequence of characters that can't be used as identifier. The list of keywords is predefined by specification. The keyword could represent the directive name, access modifier, instruction name or other special syntactic element.
Properties
Content
Gets the value of this keyword as string
Declaration
public string Content { get; }
Property Value
Type | Description |
---|---|
System.String |
Kind
Gets the keyword kind
Declaration
public KeywordKind Kind { get; }
Property Value
Type | Description |
---|---|
KeywordKind |
Methods
EnumerateChildNodes()
Enumerates child nodes of this node. For the leaf node, returns an empty collection.
Declaration
public override IEnumerable<SyntaxNode> EnumerateChildNodes()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<SyntaxNode> | The collection of child syntax nodes |
Overrides
ToText(TextWriter)
Writes text representation of this node into the specified TextWriter
Declaration
public override void ToText(TextWriter target)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextWriter | target |