Наследование: CompositeNode
Пример #1
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();
 }
Пример #2
0
 public override void VisitStatementList(StatementList statementList)
 {
     localVariableStack.Push(statementList.LocalVariables);
     statementList.Children.Accept(this);
     localVariableStack.Pop();
 }
Пример #3
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;
 }
Пример #4
0
 public CaseStatement(Expression test,
                      NodeList whenPartList,
                      StatementList elsePart,
                      Location location)
     : base(location)
 {
     this.test = test;
     this.whenPartList = whenPartList;
     this.elsePart = elsePart;
 }
Пример #5
0
 public override void VisitStatementList(StatementList statementList)
 {
     localVariableStack.Push(statementList.LocalVariables);
     ilGenerator.BeginScope();
     statementList.Children.Accept(this);
     ilGenerator.EndScope();
     localVariableStack.Pop();
 }
Пример #6
0
 public TypecaseStatement(LocalExpression variable,
                          NodeList whenPartList,
                          StatementList elsePart,
                          Location location)
     : base(location)
 {
     this.variable = variable;
     this.whenPartList = whenPartList;
     this.elsePart = elsePart;
 }
Пример #7
0
 public TypecaseWhen(TypeSpecifier typeSpecifier,
                     StatementList thenPart,
                     Location location)
     : base(location)
 {
     this.typeSpecifier = typeSpecifier;
     this.thenPart = thenPart;
     localVariable = null;
 }
Пример #8
0
 public ProtectWhen(TypeSpecifier typeSpecifier,
                    StatementList thenPart,
                    Location location)
     : base(location)
 {
     this.typeSpecifier = typeSpecifier;
     this.thenPart = thenPart;
 }
Пример #9
0
 public ProtectStatement(StatementList statementList,
                         NodeList whenPartList,
                         StatementList elsePart,
                         Location location)
     : base(location)
 {
     this.statementList = statementList;
     this.whenPartList = whenPartList;
     this.elsePart = elsePart;
 }
Пример #10
0
 public LoopStatement(StatementList statementList,
                      Location location)
     : base(location)
 {
     this.statementList = statementList;
 }
Пример #11
0
 public CaseWhen(TypedNodeList valueList,
                 StatementList thenPart,
                 Location location)
     : base(location)
 {
     this.valueList = valueList;
     this.thenPart = thenPart;
     this.testCallList = new TypedNodeList();
 }
Пример #12
0
 public virtual void VisitStatementList(StatementList statementList)
 {
 }