public static void ThrowIfNot(this LexerNode node, LexerTokens token) { if (node.Token != token) { throw new SyntaxException(node); } }
public LexerNode(LexerTokens token, string value, TextPointer start) { System.Diagnostics.Contracts.Contract.Ensures(start == null); Token = token; Value = value; StartPointer = start; }