Class MemberDeclarationNode
- Namespace
- RDCore.SDK.Model.AST.Declarations
- Assembly
- RDCore.SDK.dll
An AST node representing a member of a module.
public record MemberDeclarationNode : SyntaxNode, IEquatable<SyntaxNode>, IEquatable<MemberDeclarationNode>
- Inheritance
-
MemberDeclarationNode
- Implements
- Derived
- Inherited Members
Constructors
MemberDeclarationNode(SyntaxNodeId, SourceLocation, ImmutableArray<SyntaxNode>, string, MemberKind, AccessModifier, bool)
An AST node representing a member of a module.
public MemberDeclarationNode(SyntaxNodeId Identity, SourceLocation SourceLocation, ImmutableArray<SyntaxNode> Children, string Name, MemberKind MemberKind, AccessModifier AccessModifier = AccessModifier.Implicit, bool IsStatic = false)
Parameters
IdentitySyntaxNodeIdA unique identifier for this specific syntax node.
SourceLocationSourceLocationThe source location of this module; the
SourceRangeis invalid.ChildrenImmutableArray<SyntaxNode>An immutable array containing all AST nodes of this module.
NamestringThe declared identifier name of the member.
MemberKindMemberKindSpecifies the kind of member.
AccessModifierAccessModifierAn access modifier, if one was supplied.
IsStaticbooltruewhen the procedure is declared with theStatickeyword (MS-VBAL §5.3.1.2): every local variable of it then has module extent, as if each were declaredStatic. Only aSub, aFunctionor a property can be.
Properties
AccessModifier
An access modifier, if one was supplied.
public AccessModifier AccessModifier { get; init; }
Property Value
IsStatic
true when the procedure is declared with the Static keyword (MS-VBAL §5.3.1.2): every local variable of it then has module
extent, as if each were declared Static. Only a Sub, a Function or a property can be.
public bool IsStatic { get; init; }
Property Value
MemberKind
Specifies the kind of member.
public MemberKind MemberKind { get; init; }
Property Value
Name
The declared identifier name of the member.
public string Name { get; init; }