Table of Contents

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

Identity SyntaxNodeId

A unique identifier for this specific syntax node.

Location SourceLocation

The Location of the directive.

Name string

The unqualified name of the attribute (e.g. VB_Description, VB_UserMemId).

Value string

The raw source text of the attribute value(s) — e.g. "…", 0, True. Comma-separated values are joined with ", ".

Binding string

The member-name qualifier for a member-level attribute (Foo in Attribute Foo.VB_Description); null for 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

string

Location

The Location of the directive.

public SourceLocation Location { get; init; }

Property Value

SourceLocation

Name

The unqualified name of the attribute (e.g. VB_Description, VB_UserMemId).

public string Name { get; init; }

Property Value

string

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; }

Property Value

string