标签:for his use env contex class sde scope AC
//CompilationUnit=Env<AttrContext> localEnv = new Env<AttrContext>(tree, new AttrContext());
//JCClassDecl= Env<AttrContext> localEnv = env.dup(tree, env.info.dup(new Scope(tree.sym)));
//Scope baseScope = new Scope(tree.sym);
//Env<AttrContext> outer = env.outer; // the base clause can‘t see members of this class
//AttrContext ac = outer.info.dup(baseScope);
//Env<AttrContext> localEnv = outer.dup(tree,ac );
class TestScope {
//Scope sp = env.info.scope.dupUnshared();
//AttrContext ac = env.info.dup(sp);
//Env<AttrContext> localEnv = env.dup(tree,ac);
public TestScope(){
super();
}
public int a = 2;
//Scope sp = env.info.scope.dupUnshared();
//AttrContext ac = env.info.dup(sp);
//Env<AttrContext> localEnv = env.dup(tree,ac);
public void test(int b) {
int c = 3;
for (int d = 3; a < 6; a++) {
int e = 4;
}
}
}
标签:for his use env contex class sde scope AC
原文地址:https://www.cnblogs.com/extjs4/p/9193554.html