Exemple #1
0
 public virtual void Warning(Location location,
                             string msg, params object[] args)
 {
     warnings++;
     WriteLocation(location);
     Console.Error.WriteLine(msg, args);
 }
Exemple #2
0
 public AssignStatement(string name, Expression value, Location location)
     : base(location)
 {
     this.name = name;
     this.value = value;
     call = null;
 }
Exemple #3
0
 public TypeSpecifier(string name, TypeKind kind,
                      TypedNodeList typeParameters, Location location)
     : base(location)
 {
     this.name = name;
     this.kind = kind;
     this.typeParameters = typeParameters;
 }
Exemple #4
0
 public IterDefinition(string name,
                       TypedNodeList arguments,
                       TypeSpecifier returnType,
                       StatementList statementList,
                       RoutineModifier modifier,
                       Location location)
     : base(name, arguments, returnType,
            statementList, modifier, location)
 {
     typeBuilder = null;
     typeParameters = null;
     boundType = null;
     self = null;
     current = null;
     currentPosition = null;
     constructor = null;
     moveNext = null;
     getCurrent = null;
     creator = null;
     localVariables = new Hashtable();
     resumePoints = new ArrayList();
     resumePoints.Add(new ResumePoint());
     InitArguments();
     bridgeMethods = new ArrayList();
 }
Exemple #5
0
 public FeatureModifier(string name,
                        string newName,
                        IncludeModifier newModifier,
                        Location location)
     : base(location)
 {
     this.name = name;
     this.newName = newName;
     this.newModifier = newModifier;
 }
Exemple #6
0
 public ClassDefinition(string name, ClassKind kind,
                        TypedNodeList typeParameters,
                        TypedNodeList supertypes,
                        Location location)
     : this(name, kind, typeParameters, supertypes, null, location)
 {
 }
Exemple #7
0
 public AttrDefinition(string name,
                       TypeSpecifier typeSpecifier,
                       AttrModifier modifier,
                       Location location)
     : base(location)
 {
     this.name = name;
     this.typeSpecifier = typeSpecifier;
     this.modifier = modifier;
     fieldBuilder = null;
     reader = null;
     writer = null;
 }
Exemple #8
0
 public AbstractRoutineSignature(string name,
                                 TypedNodeList arguments,
                                 TypeSpecifier returnType,
                                 Location location)
     : base(location)
 {
     this.name = name;
     this.arguments = arguments;
     this.returnType = returnType;
     this.methodBuilder = null;
     InitArguments();
 }
Exemple #9
0
 public NewExpression(Location location)
     : this(new TypeSpecifier("SAME", TypeKind.Same, location),
            new TypedNodeList(), location)
 {
 }
Exemple #10
0
 public NewExpression(TypeSpecifier typeSpecifier,
                      TypedNodeList arguments,
                      Location location)
     : base(location)
 {
     this.typeSpecifier = typeSpecifier;
     this.arguments = arguments;
     this.constructor = null;
 }
Exemple #11
0
 public ModalExpression(ArgumentMode mode, Expression expression,
                        Location location)
     : base(location)
 {
     this.mode = mode;
     this.expression = expression;
 }
Exemple #12
0
 public BoolLiteralExpression(bool value, Location location)
     : base(location)
 {
     this.value = value;
 }
Exemple #13
0
 public LocalExpression(string name, Location location)
     : base(location)
 {
     this.name = name;
     call = null;
 }
Exemple #14
0
 public LiteralExpression(Location location)
     : base(location)
 {
 }
Exemple #15
0
 public IterCallExpression(Expression receiver,
                           string name,
                           TypedNodeList arguments,
                           Location location)
     : base(receiver, name, arguments, location)
 {
 }
Exemple #16
0
 public RoutineDefinition(string name,
                          TypedNodeList arguments,
                          TypeSpecifier returnType,
                          StatementList statementList,
                          RoutineModifier modifier,
                          Location location)
     : base(name, arguments, returnType, location)
 {
     this.statementList = statementList;
     this.modifier = modifier;
 }
Exemple #17
0
 public SharedAttrDefinition(string name,
                             TypeSpecifier typeSpecifier,
                             Expression value,
                             AttrModifier modifier,
                             Location location)
     : base(name, typeSpecifier, modifier, location)
 {
     this.value = value;
 }
Exemple #18
0
 public OrExpression(Expression left, Expression right,
                     Location location)
     : base(left, right, location)
 {
 }
Exemple #19
0
 public Argument(ArgumentMode mode,
                 string name, TypeSpecifier typeSpecifier,
                 Location location)
     : base(location)
 {
     this.mode = mode;
     this.name = name;
     this.typeSpecifier = typeSpecifier;
 }
Exemple #20
0
 public SelfExpression(Location location)
     : base(location)
 {
 }
Exemple #21
0
 public ClassDefinition(string name, ClassKind kind,
                        TypedNodeList typeParameters,
                        TypedNodeList supertypes,
                        TypedNodeList subtypes,
                        Location location)
     : base(location)
 {
     this.name = name;
     this.kind = kind;
     this.typeParameters = typeParameters;
     this.supertypes = supertypes;
     this.subtypes = subtypes;
     typeBuilder = null;
     typeData = null;
     constructor = null;
     staticConstructor = null;
     staticConstructorIL = null;
     adapters = new ArrayList();
 }
Exemple #22
0
 public StrLiteralExpression(string value, Location location)
     : base(location)
 {
     this.value = value;
 }
Exemple #23
0
 public ConstDefinition(string name,
                        TypeSpecifier typeSpecifier,
                        object value,
                        ConstModifier modifier,
                        Location location)
     : base(location)
 {
     this.name = name;
     this.typeSpecifier = typeSpecifier;
     this.value = value;
     this.modifier = modifier;
     fieldBuilder = null;
     reader = null;
 }
Exemple #24
0
 public VoidExpression(Location location)
     : base(location)
 {
 }
Exemple #25
0
 public IncludeClause(TypeSpecifier typeSpecifier,
                      IncludeModifier modifier,
                      NodeList featureModifierList,
                      Location location)
     : base(location)
 {
     this.typeSpecifier = typeSpecifier;
     this.modifier = modifier;
     this.featureModifierList = featureModifierList;
 }
Exemple #26
0
 public VoidTestExpression(Expression expression, Location location)
     : base(location)
 {
     this.expression = expression;
 }
Exemple #27
0
 public AbstractIterSignature(string name,
                              TypedNodeList arguments,
                              TypeSpecifier returnType,
                              Location location)
     : base(name, arguments, returnType, location)
 {
     typeBuilder = null;
     constructor = null;
     moveNext = null;
     getCurrent = null;
     moveNextArguments = null;
     creator = null;
     InitArguments();
 }
Exemple #28
0
 public BreakExpression(Location location)
     : base(location)
 {
 }
Exemple #29
0
 public TypeSpecifier(string name, TypeKind kind, Location location)
     : this(name, kind, new TypedNodeList(), location)
 {
 }
Exemple #30
0
 public ParameterDeclaration(string name,
                             TypeSpecifier constrainingType,
                             Location location)
     : base(location)
 {
     this.name = name;
     this.constrainingType = constrainingType;
     builder = null;
 }