2024-04-07 16:47:28 +08:00
|
|
|
|
using Canon.Core.LexicalParser;
|
|
|
|
|
|
|
|
|
|
namespace Canon.Core.SyntaxNodes;
|
|
|
|
|
|
|
|
|
|
public class TerminatedSyntaxNode : SyntaxNodeBase
|
|
|
|
|
{
|
|
|
|
|
public override bool IsTerminated => true;
|
|
|
|
|
|
|
|
|
|
public required SemanticToken Token { get; init; }
|
2024-04-19 14:59:45 +08:00
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return Token.LiteralValue;
|
|
|
|
|
}
|
2024-04-07 16:47:28 +08:00
|
|
|
|
}
|