示例#1
0
 internal VAR get_outer_local(string id, BLOCK block, int depth, YYLTYPE location)
 {
     if (defined_statically(id))
         return new StaticOuterVar(id, block, depth, location);
     else if (defined_dynamically(id))
         return new DynamicOuterVar(id, block, depth, location);
     else
         return block_parent.get_outer_local(id, block, depth + 1, location);
 }
示例#2
0
 internal DynamicLocalVar(string vid, BLOCK block, YYLTYPE location): base(vid, block, location)
 {
 }
示例#3
0
 internal DynamicOuterVar(string vid, BLOCK block, int depth, YYLTYPE location): base(vid, block, depth, location)
 {
 }
示例#4
0
 internal StaticOuterVar(string vid, BLOCK block, int depth, YYLTYPE location): base(vid, location)
 {
     this.block = block;
     this.depth = depth;
 }