Esempio n. 1
0
 public virtual void Warning(Location location,
                             string msg, params object[] args)
 {
     warnings++;
     WriteLocation(location);
     Console.Error.WriteLine(msg, args);
 }
Esempio n. 2
0
 public AssignStatement(string name, Expression value, Location location)
     : base(location)
 {
     this.name = name;
     this.value = value;
     call = null;
 }
Esempio n. 3
0
 public TypeSpecifier(string name, TypeKind kind,
                      TypedNodeList typeParameters, Location location)
     : base(location)
 {
     this.name = name;
     this.kind = kind;
     this.typeParameters = typeParameters;
 }
Esempio n. 4
0
File: class.cs Progetto: shugo/babel
 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();
 }
Esempio n. 5
0
File: class.cs Progetto: shugo/babel
 public FeatureModifier(string name,
                        string newName,
                        IncludeModifier newModifier,
                        Location location)
     : base(location)
 {
     this.name = name;
     this.newName = newName;
     this.newModifier = newModifier;
 }
Esempio n. 6
0
File: class.cs Progetto: shugo/babel
 public ClassDefinition(string name, ClassKind kind,
                        TypedNodeList typeParameters,
                        TypedNodeList supertypes,
                        Location location)
     : this(name, kind, typeParameters, supertypes, null, location)
 {
 }
Esempio n. 7
0
File: class.cs Progetto: shugo/babel
 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;
 }
Esempio n. 8
0
File: class.cs Progetto: shugo/babel
 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();
 }
Esempio n. 9
0
 public NewExpression(Location location)
     : this(new TypeSpecifier("SAME", TypeKind.Same, location),
            new TypedNodeList(), location)
 {
 }
Esempio n. 10
0
 public NewExpression(TypeSpecifier typeSpecifier,
                      TypedNodeList arguments,
                      Location location)
     : base(location)
 {
     this.typeSpecifier = typeSpecifier;
     this.arguments = arguments;
     this.constructor = null;
 }
Esempio n. 11
0
 public ModalExpression(ArgumentMode mode, Expression expression,
                        Location location)
     : base(location)
 {
     this.mode = mode;
     this.expression = expression;
 }
Esempio n. 12
0
 public BoolLiteralExpression(bool value, Location location)
     : base(location)
 {
     this.value = value;
 }
Esempio n. 13
0
 public LocalExpression(string name, Location location)
     : base(location)
 {
     this.name = name;
     call = null;
 }
Esempio n. 14
0
 public LiteralExpression(Location location)
     : base(location)
 {
 }
Esempio n. 15
0
 public IterCallExpression(Expression receiver,
                           string name,
                           TypedNodeList arguments,
                           Location location)
     : base(receiver, name, arguments, location)
 {
 }
Esempio n. 16
0
File: class.cs Progetto: shugo/babel
 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;
 }
Esempio n. 17
0
File: class.cs Progetto: shugo/babel
 public SharedAttrDefinition(string name,
                             TypeSpecifier typeSpecifier,
                             Expression value,
                             AttrModifier modifier,
                             Location location)
     : base(name, typeSpecifier, modifier, location)
 {
     this.value = value;
 }
Esempio n. 18
0
 public OrExpression(Expression left, Expression right,
                     Location location)
     : base(left, right, location)
 {
 }
Esempio n. 19
0
File: class.cs Progetto: shugo/babel
 public Argument(ArgumentMode mode,
                 string name, TypeSpecifier typeSpecifier,
                 Location location)
     : base(location)
 {
     this.mode = mode;
     this.name = name;
     this.typeSpecifier = typeSpecifier;
 }
Esempio n. 20
0
 public SelfExpression(Location location)
     : base(location)
 {
 }
Esempio n. 21
0
File: class.cs Progetto: shugo/babel
 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();
 }
Esempio n. 22
0
 public StrLiteralExpression(string value, Location location)
     : base(location)
 {
     this.value = value;
 }
Esempio n. 23
0
File: class.cs Progetto: shugo/babel
 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;
 }
Esempio n. 24
0
 public VoidExpression(Location location)
     : base(location)
 {
 }
Esempio n. 25
0
File: class.cs Progetto: shugo/babel
 public IncludeClause(TypeSpecifier typeSpecifier,
                      IncludeModifier modifier,
                      NodeList featureModifierList,
                      Location location)
     : base(location)
 {
     this.typeSpecifier = typeSpecifier;
     this.modifier = modifier;
     this.featureModifierList = featureModifierList;
 }
Esempio n. 26
0
 public VoidTestExpression(Expression expression, Location location)
     : base(location)
 {
     this.expression = expression;
 }
Esempio n. 27
0
File: class.cs Progetto: shugo/babel
 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();
 }
Esempio n. 28
0
 public BreakExpression(Location location)
     : base(location)
 {
 }
Esempio n. 29
0
 public TypeSpecifier(string name, TypeKind kind, Location location)
     : this(name, kind, new TypedNodeList(), location)
 {
 }
Esempio n. 30
0
File: class.cs Progetto: shugo/babel
 public ParameterDeclaration(string name,
                             TypeSpecifier constrainingType,
                             Location location)
     : base(location)
 {
     this.name = name;
     this.constrainingType = constrainingType;
     builder = null;
 }