Example #1
0
        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;
        }
Example #2
0
 public AstTypeDefinitionNumber(Token number)
     : base(number)
 {
 }
Example #3
0
 public AstTypeDefinitionConstant(Token constName)
     : base(constName)
 {
 }
Example #4
0
 public AstTypeDefinitionAtom(Token sourceToken)
 {
     if (sourceToken == null) throw new ArgumentException("Invalid source token");
       SourceToken = sourceToken;
 }
Example #5
0
 public AstTypeDefinitionString(Token stringValue)
     : base(stringValue)
 {
 }
Example #6
0
 public AstString(Token sourceToken)
 {
     StringContent = sourceToken;
 }
Example #7
0
 public AstVariable(Token variableToken)
 {
     VariableName = variableToken;
 }
Example #8
0
 public AstConstant(Token sourceToken)
 {
     AtomName = sourceToken;
 }
Example #9
0
 public AstTypeDefinitionName(Token termName)
 {
     TermName = termName;
 }
Example #10
0
 public AstTypeDefinitionVariable(Token variableName)
 {
     if (variableName == null) throw new ArgumentException("Variable name may not be empty.", "variableName");
       VariableName = variableName;
 }
Example #11
0
 public AstNativeKeyword(Token token)
 {
     Token = token;
 }
Example #12
0
 public AstNumber(Token sourceToken)
 {
     Number = sourceToken;
 }