This repository has been archived on 2025-10-23. You can view files and clone it, but cannot push or open issues or pull requests.
Files
nub-lang-archive/src/compiler/Nub.Lang/Frontend/Parsing/ExpressionNode.cs
nub31 830bf95308 ...
2025-05-24 21:29:47 +02:00

13 lines
358 B
C#

using Nub.Lang.Frontend.Lexing;
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;
}
}