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