Class DirectiveSyntax
Represents the directive in CIL assembler. The directive declaration starts from the dotted name.
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 DirectiveSyntax : SyntaxNode
Remarks
The directive provides meta-information, such as the method's signature or the declarations of local variables.
Properties
ContentString
Gets the text representation of this directive's content
Declaration
public string ContentString { get; }
Property Value
Type | Description |
---|---|
System.String |
ContentSyntax
Gets the collection of nodes that represent this directive's content
Declaration
public IEnumerable<SyntaxNode> ContentSyntax { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<SyntaxNode> |
Name
Gets the name of this directive
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
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 |
Overrides
WriteContent(TextWriter)
Writes text representation of this directive's content into the specified TextWriter
Declaration
public void WriteContent(TextWriter target)
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextWriter | target |