Table of Contents

Class ExpressionFactDto

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

An ExpressionFact, as it travels.

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

Constructors

ExpressionFactDto(SyntaxNodeId, SourceLocation, string?, ExpressionClassification, Uri?, ValueExpressionSemanticFlags, CompileErrorDto?, ObjectCreationFact?, DeclaredTypeKind?, bool, VBTypedValue?, PropertyAccessors, string?, DefaultMemberFact?, bool, DeclaredTypeKind?, NativeCallPlatforms?)

An ExpressionFact, as it travels.

public ExpressionFactDto(SyntaxNodeId Node, SourceLocation Location, string? DeclaredType, ExpressionClassification Classification, Uri? Binding, ValueExpressionSemanticFlags Flags, CompileErrorDto? Error, ObjectCreationFact? Creates = null, DeclaredTypeKind? TypeKind = null, bool IsArray = false, VBTypedValue? ConstantValue = null, PropertyAccessors Accessors = PropertyAccessors.None, string? LetValueType = null, DefaultMemberFact? DefaultMember = null, bool IsLetCoerced = false, DeclaredTypeKind? LetValueTypeKind = null, NativeCallPlatforms? NativeCall = null)

Parameters

Node SyntaxNodeId

The expression.

Location SourceLocation

Where it is written.

DeclaredType string

The name of its declared type, or null when it is an error.

Classification ExpressionClassification

What it names.

Binding Uri

The address of the symbol it refers to, when it resolved to one.

Flags ValueExpressionSemanticFlags

What else is the case of it.

Error CompileErrorDto

Its compile error, when it has one.

Creates ObjectCreationFact

The class of the object it creates by name, when that is known (Creates): for tooling only.

TypeKind DeclaredTypeKind?

The kind of its declared type, or of its elements' type for an array (Of(VBType?)); null when it has no type a value can have, or one that did not resolve.

IsArray bool

Whether its declared type is an array.

ConstantValue VBTypedValue

The constant binding of the constant it names, when that is known (ConstantValue); null otherwise.

Accessors PropertyAccessors

The accessors of the property it names (Accessors); None otherwise.

LetValueType string

The name of the declared type of the value parameter of the Property Let of the property it names (LetValueType); null when it names no property with one.

DefaultMember DefaultMemberFact

The default member of the class its declared type is (DefaultMember); null otherwise.

IsLetCoerced bool

Whether its value is taken and Let-coerced to a declared type (IsLetCoerced).

LetValueTypeKind DeclaredTypeKind?

The kind of the declared type of the value parameter of the Property Let of the property it names (Of(VBType?)), which LetValueType names; null when it names no property with one, or one whose type did not resolve.

NativeCall NativeCallPlatforms?

For an expression bound to a procedure a Declare statement declares, the platforms it is compiled on and those the procedure is declared on (NativeCall); null otherwise.

Properties

Accessors

The accessors of the property it names (Accessors); None otherwise.

public PropertyAccessors Accessors { get; init; }

Property Value

PropertyAccessors

Binding

The address of the symbol it refers to, when it resolved to one.

public Uri? Binding { get; init; }

Property Value

Uri

Classification

What it names.

public ExpressionClassification Classification { get; init; }

Property Value

ExpressionClassification

ConstantValue

The constant binding of the constant it names, when that is known (ConstantValue); null otherwise.

public VBTypedValue? ConstantValue { get; init; }

Property Value

VBTypedValue

Creates

The class of the object it creates by name, when that is known (Creates): for tooling only.

public ObjectCreationFact? Creates { get; init; }

Property Value

ObjectCreationFact

DeclaredType

The name of its declared type, or null when it is an error.

public string? DeclaredType { get; init; }

Property Value

string

DefaultMember

The default member of the class its declared type is (DefaultMember); null otherwise.

public DefaultMemberFact? DefaultMember { get; init; }

Property Value

DefaultMemberFact

Error

Its compile error, when it has one.

public CompileErrorDto? Error { get; init; }

Property Value

CompileErrorDto

Flags

What else is the case of it.

public ValueExpressionSemanticFlags Flags { get; init; }

Property Value

ValueExpressionSemanticFlags

IsArray

Whether its declared type is an array.

public bool IsArray { get; init; }

Property Value

bool

IsLetCoerced

Whether its value is taken and Let-coerced to a declared type (IsLetCoerced).

public bool IsLetCoerced { get; init; }

Property Value

bool

LetValueType

The name of the declared type of the value parameter of the Property Let of the property it names (LetValueType); null when it names no property with one.

public string? LetValueType { get; init; }

Property Value

string

LetValueTypeKind

The kind of the declared type of the value parameter of the Property Let of the property it names (Of(VBType?)), which LetValueType names; null when it names no property with one, or one whose type did not resolve.

public DeclaredTypeKind? LetValueTypeKind { get; init; }

Property Value

DeclaredTypeKind?

Location

Where it is written.

public SourceLocation Location { get; init; }

Property Value

SourceLocation

NativeCall

For an expression bound to a procedure a Declare statement declares, the platforms it is compiled on and those the procedure is declared on (NativeCall); null otherwise.

public NativeCallPlatforms? NativeCall { get; init; }

Property Value

NativeCallPlatforms?

Node

The expression.

public SyntaxNodeId Node { get; init; }

Property Value

SyntaxNodeId

TypeKind

The kind of its declared type, or of its elements' type for an array (Of(VBType?)); null when it has no type a value can have, or one that did not resolve.

public DeclaredTypeKind? TypeKind { get; init; }

Property Value

DeclaredTypeKind?

Methods

From(ExpressionFact)

Describes a fact for the wire.

public static ExpressionFactDto From(ExpressionFact fact)

Parameters

fact ExpressionFact

The fact of an expression.

Returns

ExpressionFactDto