Class ExternalMemberDeclarationNode
- Namespace
- RDCore.SDK.Model.AST.Declarations
- Assembly
- RDCore.SDK.dll
public record ExternalMemberDeclarationNode : MemberDeclarationNode, IEquatable<SyntaxNode>, IEquatable<MemberDeclarationNode>, IEquatable<ExternalMemberDeclarationNode>
- Inheritance
-
ExternalMemberDeclarationNode
- Implements
- Inherited Members
- Extension Methods
Constructors
ExternalMemberDeclarationNode(SyntaxNodeId, SourceLocation, ImmutableArray<SyntaxNode>, string, string, bool, MemberKind, string?, AccessModifier, string?, SourceRange?)
public ExternalMemberDeclarationNode(SyntaxNodeId Identity, SourceLocation SourceLocation, ImmutableArray<SyntaxNode> Children, string Name = "", string Library = "", bool IsPtrSafe = false, MemberKind MemberKind = MemberKind.ExternalProcedure, string? Alias = null, AccessModifier AccessModifier = AccessModifier.Implicit, string? TypeHint = null, SourceRange? NameRange = null)
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.
LibrarystringThe external library.
IsPtrSafeboolAn indicator that is
truewhen the declaration includes aPtrSafetoken.MemberKindMemberKindSpecifies the kind of member.
AliasstringThe declared alias of the external member, if provided.
AccessModifierAccessModifierAn access modifier, if one was supplied.
TypeHintstringThe type hint the name is written with, if any (
Declare Function Name$ Lib "lib").NameRangeSourceRange?Where the name is written, with its type-declaration character; null when it is not known.
Properties
Alias
The declared alias of the external member, if provided.
public string? Alias { get; init; }
Property Value
IsPtrSafe
An indicator that is true when the declaration includes a PtrSafe token.
public bool IsPtrSafe { get; init; }
Property Value
Library
The external library.
public string Library { get; init; }