11 lines
422 B
C#
11 lines
422 B
C#
using Nub.Lang.Frontend.Lexing;
|
|
using Nub.Lang.Frontend.Typing;
|
|
|
|
namespace Nub.Lang.Frontend.Parsing;
|
|
|
|
public class VariableAssignmentNode(IReadOnlyList<Token> tokens, string name, Optional<NubType> explicitType, ExpressionNode value) : StatementNode(tokens)
|
|
{
|
|
public string Name { get; } = name;
|
|
public Optional<NubType> ExplicitType { get; } = explicitType;
|
|
public ExpressionNode Value { get; } = value;
|
|
} |