Table of Contents

Class ArgumentMap

Namespace
RDCore.SDK.Semantics.Binding
Assembly
RDCore.SDK.dll

The arguments of a call mapped to the parameters of the procedure it calls (Map(ImmutableArray<VBParameterSymbol>, ImmutableArray<ExpressionNode>)).

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

Constructors

ArgumentMap(ExpressionNode?[]?, ImmutableArray<ExpressionNode>, ArgumentMappingError, ExpressionNode?)

The arguments of a call mapped to the parameters of the procedure it calls (Map(ImmutableArray<VBParameterSymbol>, ImmutableArray<ExpressionNode>)).

public ArgumentMap(ExpressionNode?[]? Mapped, ImmutableArray<ExpressionNode> ParamArrayArguments, ArgumentMappingError Error, ExpressionNode? ErrorAt)

Parameters

Mapped ExpressionNode[]

The argument each parameter is given, by the parameter's position - the value of a named argument; null for a parameter given none, or when Error is not None.

ParamArrayArguments ImmutableArray<ExpressionNode>

The positional arguments a trailing ParamArray parameter collects.

Error ArgumentMappingError

What went wrong, if anything did.

ErrorAt ExpressionNode

The argument that is wrong, when one is.

Properties

Error

What went wrong, if anything did.

public ArgumentMappingError Error { get; init; }

Property Value

ArgumentMappingError

ErrorAt

The argument that is wrong, when one is.

public ExpressionNode? ErrorAt { get; init; }

Property Value

ExpressionNode

Mapped

The argument each parameter is given, by the parameter's position - the value of a named argument; null for a parameter given none, or when Error is not None.

public ExpressionNode?[]? Mapped { get; init; }

Property Value

ExpressionNode[]

ParamArrayArguments

The positional arguments a trailing ParamArray parameter collects.

public ImmutableArray<ExpressionNode> ParamArrayArguments { get; init; }

Property Value

ImmutableArray<ExpressionNode>