Class ExpressionFactDto
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
NodeSyntaxNodeIdThe expression.
LocationSourceLocationWhere it is written.
DeclaredTypestringThe name of its declared type, or null when it is an error.
ClassificationExpressionClassificationWhat it names.
BindingUriThe address of the symbol it refers to, when it resolved to one.
FlagsValueExpressionSemanticFlagsWhat else is the case of it.
ErrorCompileErrorDtoIts compile error, when it has one.
CreatesObjectCreationFactThe class of the object it creates by name, when that is known (Creates): for tooling only.
TypeKindDeclaredTypeKind?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.
IsArrayboolWhether its declared type is an array.
ConstantValueVBTypedValueThe constant binding of the constant it names, when that is known (ConstantValue); null otherwise.
AccessorsPropertyAccessorsThe accessors of the property it names (Accessors); None otherwise.
LetValueTypestringThe name of the declared type of the value parameter of the
Property Letof the property it names (LetValueType); null when it names no property with one.DefaultMemberDefaultMemberFactThe default member of the class its declared type is (DefaultMember); null otherwise.
IsLetCoercedboolWhether its value is taken and Let-coerced to a declared type (IsLetCoerced).
LetValueTypeKindDeclaredTypeKind?The kind of the declared type of the value parameter of the
Property Letof the property it names (Of(VBType?)), whichLetValueTypenames; null when it names no property with one, or one whose type did not resolve.NativeCallNativeCallPlatforms?For an expression bound to a procedure a
Declarestatement declares, the platforms it is compiled on and those the procedure is declared on (NativeCall); null otherwise.
Properties
Accessors
public PropertyAccessors Accessors { get; init; }
Property Value
Binding
The address of the symbol it refers to, when it resolved to one.
public Uri? Binding { get; init; }
Property Value
Classification
What it names.
public ExpressionClassification Classification { get; init; }
Property Value
ConstantValue
The constant binding of the constant it names, when that is known (ConstantValue); null otherwise.
public VBTypedValue? ConstantValue { get; init; }
Property Value
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
DeclaredType
The name of its declared type, or null when it is an error.
public string? DeclaredType { get; init; }
Property Value
DefaultMember
The default member of the class its declared type is (DefaultMember); null otherwise.
public DefaultMemberFact? DefaultMember { get; init; }
Property Value
Error
Its compile error, when it has one.
public CompileErrorDto? Error { get; init; }
Property Value
Flags
What else is the case of it.
public ValueExpressionSemanticFlags Flags { get; init; }
Property Value
IsArray
Whether its declared type is an array.
public bool IsArray { get; init; }
Property Value
IsLetCoerced
Whether its value is taken and Let-coerced to a declared type (IsLetCoerced).
public bool IsLetCoerced { get; init; }
Property Value
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
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
Location
Where it is written.
public SourceLocation Location { get; init; }
Property Value
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
Node
The expression.
public SyntaxNodeId Node { get; init; }
Property Value
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
Methods
From(ExpressionFact)
Describes a fact for the wire.
public static ExpressionFactDto From(ExpressionFact fact)
Parameters
factExpressionFactThe fact of an expression.