Table of Contents

Class DeclarationFactDto

Namespace
RDCore.SDK.Platform.Protocol
Assembly
RDCore.SDK.dll

A DeclarationFact, as it travels.

public record DeclarationFactDto : IEquatable<DeclarationFactDto>
Inheritance
DeclarationFactDto
Implements
Inherited Members

Constructors

DeclarationFactDto(Uri, string, DeclarationKind, AccessModifier, bool, SourceLocation, DeclarationReferences?, DeclarationRole, LocalDeclarationKind?, HiddenDeclaration?, ImmutableArray<DeclarationReference>?, DeclaredTypeKind?, bool, Uri?, CompiledPlatforms?, ImmutableArray<CompiledPlatforms>?)

A DeclarationFact, as it travels.

public DeclarationFactDto(Uri Symbol, string Name, DeclarationKind Kind, AccessModifier Access, bool IsImplicit, SourceLocation Location, DeclarationReferences? References, DeclarationRole Role = DeclarationRole.None, LocalDeclarationKind? DeclaredBy = null, HiddenDeclaration? Hides = null, ImmutableArray<DeclarationReference>? ReferencedFrom = null, DeclaredTypeKind? TypeKind = null, bool IsArray = false, Uri? AutoInstantiates = null, CompiledPlatforms? CompiledOn = null, ImmutableArray<CompiledPlatforms>? StatementsCompiledOn = null)

Parameters

Symbol Uri

The address of the declared symbol.

Name string

The name it is declared with.

Kind DeclarationKind

What it declares.

Access AccessModifier

Who can refer to it besides the module's own code.

IsImplicit bool

Whether it was never declared.

Location SourceLocation

Where it is declared.

References DeclarationReferences?

Every reference to it, when they are known; null says they are not.

Role DeclarationRole

What it is there for, when it implements an interface member or handles an event.

DeclaredBy LocalDeclarationKind?

How a local variable came to be declared; null for any other declaration.

Hides HiddenDeclaration

What a local or a parameter hides; null when it hides nothing, and for any other declaration.

ReferencedFrom ImmutableArray<DeclarationReference>?

Each reference to it, in any module of the project; null exactly when References is.

TypeKind DeclaredTypeKind?

The kind of type it is declared as, or of its elements' type for an array; null when it has no type, or one that did not resolve.

IsArray bool

Whether it is declared as an array.

AutoInstantiates Uri

The address of the class whose object it is given where code first uses it, for a variable declared As New (AutoInstantiates); null for any other declaration.

CompiledOn CompiledPlatforms?

For a procedure a Declare statement declares, the platforms it is declared on (CompiledOn); null for any other declaration.

StatementsCompiledOn ImmutableArray<CompiledPlatforms>?

For a procedure a Declare statement declares, the platforms each of its statements is compiled on, in the order they are written (StatementsCompiledOn); null for any other declaration.

Properties

Access

Who can refer to it besides the module's own code.

public AccessModifier Access { get; init; }

Property Value

AccessModifier

AutoInstantiates

The address of the class whose object it is given where code first uses it, for a variable declared As New (AutoInstantiates); null for any other declaration.

public Uri? AutoInstantiates { get; init; }

Property Value

Uri

CompiledOn

For a procedure a Declare statement declares, the platforms it is declared on (CompiledOn); null for any other declaration.

public CompiledPlatforms? CompiledOn { get; init; }

Property Value

CompiledPlatforms?

DeclaredBy

How a local variable came to be declared; null for any other declaration.

public LocalDeclarationKind? DeclaredBy { get; init; }

Property Value

LocalDeclarationKind?

Hides

What a local or a parameter hides; null when it hides nothing, and for any other declaration.

public HiddenDeclaration? Hides { get; init; }

Property Value

HiddenDeclaration

IsArray

Whether it is declared as an array.

public bool IsArray { get; init; }

Property Value

bool

IsImplicit

Whether it was never declared.

public bool IsImplicit { get; init; }

Property Value

bool

Kind

What it declares.

public DeclarationKind Kind { get; init; }

Property Value

DeclarationKind

Location

Where it is declared.

public SourceLocation Location { get; init; }

Property Value

SourceLocation

Name

The name it is declared with.

public string Name { get; init; }

Property Value

string

ReferencedFrom

Each reference to it, in any module of the project; null exactly when References is.

public ImmutableArray<DeclarationReference>? ReferencedFrom { get; init; }

Property Value

ImmutableArray<DeclarationReference>?

References

Every reference to it, when they are known; null says they are not.

public DeclarationReferences? References { get; init; }

Property Value

DeclarationReferences?

Role

What it is there for, when it implements an interface member or handles an event.

public DeclarationRole Role { get; init; }

Property Value

DeclarationRole

StatementsCompiledOn

For a procedure a Declare statement declares, the platforms each of its statements is compiled on, in the order they are written (StatementsCompiledOn); null for any other declaration.

public ImmutableArray<CompiledPlatforms>? StatementsCompiledOn { get; init; }

Property Value

ImmutableArray<CompiledPlatforms>?

Symbol

The address of the declared symbol.

public Uri Symbol { get; init; }

Property Value

Uri

TypeKind

The kind of type it is declared as, or of its elements' type for an array; null when it has no type, or one that did not resolve.

public DeclaredTypeKind? TypeKind { get; init; }

Property Value

DeclaredTypeKind?