Class AttributeDirectiveNode
- Namespace
- RDCore.SDK.Model.AST.Directives
- Assembly
- RDCore.SDK.dll
A DirectiveNode representing a VB_Attribute directive (module- or member-level).
public record AttributeDirectiveNode : DirectiveNode, IEquatable<SyntaxNode>, IEquatable<DirectiveNode>, IEquatable<AttributeDirectiveNode>
- Inheritance
-
AttributeDirectiveNode
- Implements
- Inherited Members
Constructors
AttributeDirectiveNode(SyntaxNodeId, SourceLocation, string, string, string?)
A DirectiveNode representing a VB_Attribute directive (module- or member-level).
public AttributeDirectiveNode(SyntaxNodeId Identity, SourceLocation Location, string Name, string Value, string? Binding = null)
Parameters
IdentitySyntaxNodeIdA unique identifier for this specific syntax node.
LocationSourceLocationThe
Locationof the directive.NamestringThe unqualified name of the attribute (e.g.
VB_Description,VB_UserMemId).ValuestringThe raw source text of the attribute value(s) — e.g.
"…",0,True. Comma-separated values are joined with", ".BindingstringThe member-name qualifier for a member-level attribute (
FooinAttribute Foo.VB_Description);nullfor a module-level attribute.
Properties
Binding
The member-name qualifier for a member-level attribute (Foo in Attribute Foo.VB_Description); null for a module-level attribute.
public string? Binding { get; init; }
Property Value
Location
The Location of the directive.
public SourceLocation Location { get; init; }
Property Value
Name
The unqualified name of the attribute (e.g. VB_Description, VB_UserMemId).
public string Name { get; init; }
Property Value
Value
The raw source text of the attribute value(s) — e.g. "…", 0, True. Comma-separated values are joined with ", ".
public string Value { get; init; }