Files
nub-lang/src/compiler/Nub.Lang/Frontend/Parsing/ExpressionNode.cs
2025-05-26 20:48:31 +02:00

14 lines
390 B
C#

using Nub.Lang.Frontend.Lexing;
using Nub.Lang.Frontend.Typing;
namespace Nub.Lang.Frontend.Parsing;
public abstract class ExpressionNode(IReadOnlyList<Token> tokens) : Node(tokens)
{
private NubType? _type;
public NubType Type
{
get => _type ?? throw new Exception("Tried to access expression type before type was populated");
set => _type = value;
}
}