Inheritance: CompositeNode
Ejemplo n.º 1
0
Archivo: class.cs Proyecto: 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();
 }
Ejemplo n.º 2
0
 public override void VisitStatementList(StatementList statementList)
 {
     localVariableStack.Push(statementList.LocalVariables);
     statementList.Children.Accept(this);
     localVariableStack.Pop();
 }
Ejemplo n.º 3
0
Archivo: class.cs Proyecto: 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;
 }
Ejemplo n.º 4
0
 public CaseStatement(Expression test,
                      NodeList whenPartList,
                      StatementList elsePart,
                      Location location)
     : base(location)
 {
     this.test = test;
     this.whenPartList = whenPartList;
     this.elsePart = elsePart;
 }
Ejemplo n.º 5
0
 public override void VisitStatementList(StatementList statementList)
 {
     localVariableStack.Push(statementList.LocalVariables);
     ilGenerator.BeginScope();
     statementList.Children.Accept(this);
     ilGenerator.EndScope();
     localVariableStack.Pop();
 }
Ejemplo n.º 6
0
 public TypecaseStatement(LocalExpression variable,
                          NodeList whenPartList,
                          StatementList elsePart,
                          Location location)
     : base(location)
 {
     this.variable = variable;
     this.whenPartList = whenPartList;
     this.elsePart = elsePart;
 }
Ejemplo n.º 7
0
 public TypecaseWhen(TypeSpecifier typeSpecifier,
                     StatementList thenPart,
                     Location location)
     : base(location)
 {
     this.typeSpecifier = typeSpecifier;
     this.thenPart = thenPart;
     localVariable = null;
 }
Ejemplo n.º 8
0
 public ProtectWhen(TypeSpecifier typeSpecifier,
                    StatementList thenPart,
                    Location location)
     : base(location)
 {
     this.typeSpecifier = typeSpecifier;
     this.thenPart = thenPart;
 }
Ejemplo n.º 9
0
 public ProtectStatement(StatementList statementList,
                         NodeList whenPartList,
                         StatementList elsePart,
                         Location location)
     : base(location)
 {
     this.statementList = statementList;
     this.whenPartList = whenPartList;
     this.elsePart = elsePart;
 }
Ejemplo n.º 10
0
 public LoopStatement(StatementList statementList,
                      Location location)
     : base(location)
 {
     this.statementList = statementList;
 }
Ejemplo n.º 11
0
 public CaseWhen(TypedNodeList valueList,
                 StatementList thenPart,
                 Location location)
     : base(location)
 {
     this.valueList = valueList;
     this.thenPart = thenPart;
     this.testCallList = new TypedNodeList();
 }
Ejemplo n.º 12
0
Archivo: node.cs Proyecto: shugo/babel
 public virtual void VisitStatementList(StatementList statementList)
 {
 }