public AstTypeDefinitionTerm(Token termName, List<AstTypeDefinitionName> subTypeArgumentNames) { if (subTypeArgumentNames == null || subTypeArgumentNames.Count < 1) throw new ArgumentException("Invalid subtype arguments", "subTypeArgumentNames"); if (termName == null) throw new ArgumentException("Invalid term name.", "termName"); TermName = termName; SubTypeArgumentNames = subTypeArgumentNames; }
public AstTypeDefinitionNumber(Token number) : base(number) { }
public AstTypeDefinitionConstant(Token constName) : base(constName) { }
public AstTypeDefinitionAtom(Token sourceToken) { if (sourceToken == null) throw new ArgumentException("Invalid source token"); SourceToken = sourceToken; }
public AstTypeDefinitionString(Token stringValue) : base(stringValue) { }
public AstString(Token sourceToken) { StringContent = sourceToken; }
public AstVariable(Token variableToken) { VariableName = variableToken; }
public AstConstant(Token sourceToken) { AtomName = sourceToken; }
public AstTypeDefinitionName(Token termName) { TermName = termName; }
public AstTypeDefinitionVariable(Token variableName) { if (variableName == null) throw new ArgumentException("Variable name may not be empty.", "variableName"); VariableName = variableName; }
public AstNativeKeyword(Token token) { Token = token; }
public AstNumber(Token sourceToken) { Number = sourceToken; }