示例#1
0
文件: Compiler.cs 项目: GirlD/mono
		public VariableScope (VariableScope parent)
		{
			this.parent = parent;
			if (parent != null)
				this.nextSlot = parent.nextSlot;
		}
示例#2
0
文件: Compiler.cs 项目: GirlD/mono
		public void PushScope ()
		{
			curVarScope = new VariableScope (curVarScope);
		}
示例#3
0
文件: Compiler.cs 项目: GirlD/mono
		public VariableScope PopScope ()
		{
			curVarScope.giveHighTideToParent ();
			VariableScope cur = curVarScope;
			curVarScope = curVarScope.Parent;
			return cur;
		}
示例#4
0
 public void PushScope()
 {
     curVarScope = new VariableScope(curVarScope);
 }