Table of Contents

Class ModuleAnalysisContext

Namespace
RDCore.SDK.Model.Diagnostics
Assembly
RDCore.SDK.dll

What an analyzer is given of a module: the syntax tree, and the facts the platform's semantic analysis pass found out about it.

public sealed record ModuleAnalysisContext : IEquatable<ModuleAnalysisContext>
Inheritance
ModuleAnalysisContext
Implements
Inherited Members

Remarks

An analyzer is a function of facts: the pass says what is (RD-VBAL §5.0.3), and the analyzer decides what is worth saying. A fact is stated only when it is true, so an analyzer can rely on one that is there and has nothing to say about one that is not.

Constructors

ModuleAnalysisContext(Uri, ModuleParseResult, ModuleSemanticsDto?)

What an analyzer is given of a module: the syntax tree, and the facts the platform's semantic analysis pass found out about it.

public ModuleAnalysisContext(Uri Document, ModuleParseResult ParseResult, ModuleSemanticsDto? Semantics)

Parameters

Document Uri

The document being analyzed.

ParseResult ModuleParseResult

The parsed module: the syntax tree, for where things are written.

Semantics ModuleSemanticsDto

What the environment host found out about the module, or null when it has not: it is not part of the platform, or has not loaded the module.

Remarks

An analyzer is a function of facts: the pass says what is (RD-VBAL §5.0.3), and the analyzer decides what is worth saying. A fact is stated only when it is true, so an analyzer can rely on one that is there and has nothing to say about one that is not.

Properties

Document

The document being analyzed.

public Uri Document { get; init; }

Property Value

Uri

ParseResult

The parsed module: the syntax tree, for where things are written.

public ModuleParseResult ParseResult { get; init; }

Property Value

ModuleParseResult

Semantics

What the environment host found out about the module, or null when it has not: it is not part of the platform, or has not loaded the module.

public ModuleSemanticsDto? Semantics { get; init; }

Property Value

ModuleSemanticsDto