コード例 #1
0
 public ASTDeclarationLocal(LexLocation location, ASTType type, String id)
 {
     HasValue = false;
     Type     = type;
     ID       = id;
     Location = location;
 }
コード例 #2
0
 public ASTDeclarationLocal(LexLocation location, ASTType type, String id, ASTExpression value)
 {
     HasValue     = true;
     Type         = type;
     ID           = id;
     Location     = location;
     InitialValue = value;
 }
コード例 #3
0
ファイル: ASTDeclarationMethod.cs プロジェクト: goric/cflat
 public ASTDeclarationMethod(ASTModifierList accessModifiers, ASTType returnType, String name, ASTFormalList formals, ASTStatementList body)
 {
     Modifiers  = accessModifiers;
     ReturnType = returnType;
     Name       = name;
     Formals    = formals;
     Body       = body;
 }
コード例 #4
0
 public ASTInstantiateArray(ASTType type, ASTExpression low, ASTExpression up)
 {
     Type  = type;
     Lower = low;
     Upper = up;
 }
コード例 #5
0
ファイル: ASTTypeArray.cs プロジェクト: goric/cflat
 public ASTTypeArray(ASTType baseType)
 {
     BaseType = baseType;
 }
コード例 #6
0
 public ASTFormal(string modifier, ASTType type, String name)
 {
     Modifier = modifier;
     Type     = type;
     Name     = name;
 }
コード例 #7
0
 public ASTFormal(ASTType type, String name)
 {
     Type = type;
     Name = name;
 }
コード例 #8
0
ファイル: ASTDeclarationField.cs プロジェクト: goric/cflat
 public ASTDeclarationField(ASTModifierList modifiers, ASTType type, String name)
 {
     Modifiers = modifiers;
     FieldType = type;
     Name      = name;
 }
コード例 #9
0
 /* Variables */
 public virtual void VisitType(ASTType n)
 {
 }