AddLocal() public method

public AddLocal ( string name, TypeData type ) : LocalVariable
name string
type TypeData
return LocalVariable
コード例 #1
0
ファイル: typecheck.cs プロジェクト: shugo/babel
 public override void VisitIter(IterDefinition iter)
 {
     currentRoutine = currentIter = iter;
     localVariableStack = new IterLocalVariableStack(iter.TypeBuilder);
     localVariableStack.Push(iter.LocalVariables);
     foreach (Argument arg in iter.Arguments) {
         if (arg.Mode == ArgumentMode.Once)
             localVariableStack.AddLocal(arg.Name, arg.NodeType);
     }
     temporallyCount = 0;
     iter.StatementList.Accept(this);
     currentRoutine = currentIter = null;
 }