Table of Contents

Class ConversionFactDto

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

A ConversionFact, as it travels.

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

Constructors

ConversionFactDto(SyntaxNodeId, SourceLocation, ConversionSite, string, string, ConversionSemanticFlags, bool, RuntimeErrorDto?, InputIndex)

A ConversionFact, as it travels.

public ConversionFactDto(SyntaxNodeId Node, SourceLocation Location, ConversionSite Site, string Source, string Destination, ConversionSemanticFlags Flags, bool IsValueKnown, RuntimeErrorDto? Error, InputIndex Operand = InputIndex.BinaryLeftOperand)

Parameters

Node SyntaxNodeId

The syntax node the conversion is evaluated for.

Location SourceLocation

Where the conversion is.

Site ConversionSite

The construct that asks for the conversion.

Source string

The name of the declared type of the value that is converted.

Destination string

The name of the type it is converted to.

Flags ConversionSemanticFlags

What the conversion does, and what is known about its source.

IsValueKnown bool

Whether the value that is converted is known, as opposed to a value its type merely allows.

Error RuntimeErrorDto

The run-time error the conversion raises, when it is guaranteed to.

Operand InputIndex

The operand that is converted: its position in the operation that converts it.

Properties

Destination

The name of the type it is converted to.

public string Destination { get; init; }

Property Value

string

Error

The run-time error the conversion raises, when it is guaranteed to.

public RuntimeErrorDto? Error { get; init; }

Property Value

RuntimeErrorDto

Flags

What the conversion does, and what is known about its source.

public ConversionSemanticFlags Flags { get; init; }

Property Value

ConversionSemanticFlags

IsValueKnown

Whether the value that is converted is known, as opposed to a value its type merely allows.

public bool IsValueKnown { get; init; }

Property Value

bool

Location

Where the conversion is.

public SourceLocation Location { get; init; }

Property Value

SourceLocation

Node

The syntax node the conversion is evaluated for.

public SyntaxNodeId Node { get; init; }

Property Value

SyntaxNodeId

Operand

The operand that is converted: its position in the operation that converts it.

public InputIndex Operand { get; init; }

Property Value

InputIndex

Site

The construct that asks for the conversion.

public ConversionSite Site { get; init; }

Property Value

ConversionSite

Source

The name of the declared type of the value that is converted.

public string Source { get; init; }

Property Value

string

Methods

From(ConversionFact)

Describes a conversion for the wire.

public static ConversionFactDto From(ConversionFact fact)

Parameters

fact ConversionFact

The conversion.

Returns

ConversionFactDto