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