Table of Contents

Class NewExpressionNode

Namespace
RDCore.SDK.Model.AST.Expressions
Assembly
RDCore.SDK.dll

MS-VBAL 5.6.8 New Expressions — New <type-expression>, instantiating a new object of the class referenced by TypeExpression and yielding that object.

public record NewExpressionNode : ExpressionNode, IEquatable<SyntaxNode>, IExecutableNode, IEquatable<ExpressionNode>, IEquatable<NewExpressionNode>
Inheritance
NewExpressionNode
Implements
Inherited Members

Remarks

The grammar admits any expression as the operand (matching ctNewExpr's complexType counterpart used by Dim x As New ClassName); static semantics narrow it to a reference naming an instantiable class.

Constructors

NewExpressionNode(SyntaxNodeId, SourceLocation, ExpressionNode)

MS-VBAL 5.6.8 New Expressions — New <type-expression>, instantiating a new object of the class referenced by TypeExpression and yielding that object.

public NewExpressionNode(SyntaxNodeId Identity, SourceLocation Location, ExpressionNode TypeExpression)

Parameters

Identity SyntaxNodeId

A unique identifier for this specific syntax node.

Location SourceLocation

The document location (Uri+Range) of the bound expression.

TypeExpression ExpressionNode

The expression naming the class being instantiated.

Remarks

The grammar admits any expression as the operand (matching ctNewExpr's complexType counterpart used by Dim x As New ClassName); static semantics narrow it to a reference naming an instantiable class.

Properties

TypeExpression

The expression naming the class being instantiated.

public ExpressionNode TypeExpression { get; init; }

Property Value

ExpressionNode