Table of Contents

Class ModuleSemanticsDto

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

A ModuleSemanticModel, as it travels.

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

Constructors

ModuleSemanticsDto(Uri, bool?, ImmutableArray<CompileErrorDto>, ImmutableArray<ProcedureSemanticsDto>, ImmutableArray<DeclarationFactDto>, string?, ClassModuleSemanticFlags?, DocumentModuleFact?, ImmutableArray<ClassFact>?, ImmutableArray<string>?)

A ModuleSemanticModel, as it travels.

public ModuleSemanticsDto(Uri Module, bool? OptionExplicit, ImmutableArray<CompileErrorDto> DeclarationErrors, ImmutableArray<ProcedureSemanticsDto> Procedures, ImmutableArray<DeclarationFactDto> Declarations, string? Language = null, ClassModuleSemanticFlags? Class = null, DocumentModuleFact? Document = null, ImmutableArray<ClassFact>? Classes = null, ImmutableArray<string>? DocumentModules = null)

Parameters

Module Uri

The address of the module.

OptionExplicit bool?

Whether the module states Option Explicit; not issued (null) in a language that has no such directive.

DeclarationErrors ImmutableArray<CompileErrorDto>

What is wrong with what the module declares.

Procedures ImmutableArray<ProcedureSemanticsDto>

The model of each procedure of the module.

Declarations ImmutableArray<DeclarationFactDto>

What is known of how the module's declarations are used.

Language string

The identifier of the language the module is loaded as, when the host says.

Class ClassModuleSemanticFlags?

What the objects of the class are, for a class module (ClassModuleSemanticFlags); null for any other module.

Document DocumentModuleFact

What the module is the code of, for a document module (DocumentModuleFact); null for any other module.

Classes ImmutableArray<ClassFact>?

Each class whose objects the module's code creates (Classes); null when it creates none.

DocumentModules ImmutableArray<string>?

The names of the document modules a name written in the module can refer to (DocumentModules); null when there are none.

Properties

Class

What the objects of the class are, for a class module (ClassModuleSemanticFlags); null for any other module.

public ClassModuleSemanticFlags? Class { get; init; }

Property Value

ClassModuleSemanticFlags?

Classes

Each class whose objects the module's code creates (Classes); null when it creates none.

public ImmutableArray<ClassFact>? Classes { get; init; }

Property Value

ImmutableArray<ClassFact>?

DeclarationErrors

What is wrong with what the module declares.

public ImmutableArray<CompileErrorDto> DeclarationErrors { get; init; }

Property Value

ImmutableArray<CompileErrorDto>

Declarations

What is known of how the module's declarations are used.

public ImmutableArray<DeclarationFactDto> Declarations { get; init; }

Property Value

ImmutableArray<DeclarationFactDto>

Document

What the module is the code of, for a document module (DocumentModuleFact); null for any other module.

public DocumentModuleFact? Document { get; init; }

Property Value

DocumentModuleFact

DocumentModules

The names of the document modules a name written in the module can refer to (DocumentModules); null when there are none.

public ImmutableArray<string>? DocumentModules { get; init; }

Property Value

ImmutableArray<string>?

Language

The identifier of the language the module is loaded as, when the host says.

public string? Language { get; init; }

Property Value

string

Module

The address of the module.

public Uri Module { get; init; }

Property Value

Uri

OptionExplicit

Whether the module states Option Explicit; not issued (null) in a language that has no such directive.

public bool? OptionExplicit { get; init; }

Property Value

bool?

Procedures

The model of each procedure of the module.

public ImmutableArray<ProcedureSemanticsDto> Procedures { get; init; }

Property Value

ImmutableArray<ProcedureSemanticsDto>

Methods

From(ModuleSemanticModel)

Describes a model for the wire.

public static ModuleSemanticsDto From(ModuleSemanticModel model)

Parameters

model ModuleSemanticModel

The model of a module.

Returns

ModuleSemanticsDto