Class ConversionFactDto
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
NodeSyntaxNodeIdThe syntax node the conversion is evaluated for.
LocationSourceLocationWhere the conversion is.
SiteConversionSiteThe construct that asks for the conversion.
SourcestringThe name of the declared type of the value that is converted.
DestinationstringThe name of the type it is converted to.
FlagsConversionSemanticFlagsWhat the conversion does, and what is known about its source.
IsValueKnownboolWhether the value that is converted is known, as opposed to a value its type merely allows.
ErrorRuntimeErrorDtoThe run-time error the conversion raises, when it is guaranteed to.
OperandInputIndexThe 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
Error
The run-time error the conversion raises, when it is guaranteed to.
public RuntimeErrorDto? Error { get; init; }
Property Value
Flags
What the conversion does, and what is known about its source.
public ConversionSemanticFlags Flags { get; init; }
Property Value
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
Location
Where the conversion is.
public SourceLocation Location { get; init; }
Property Value
Node
The syntax node the conversion is evaluated for.
public SyntaxNodeId Node { get; init; }
Property Value
Operand
The operand that is converted: its position in the operation that converts it.
public InputIndex Operand { get; init; }
Property Value
Site
The construct that asks for the conversion.
public ConversionSite Site { get; init; }
Property Value
Source
The name of the declared type of the value that is converted.
public string Source { get; init; }
Property Value
Methods
From(ConversionFact)
Describes a conversion for the wire.
public static ConversionFactDto From(ConversionFact fact)
Parameters
factConversionFactThe conversion.