码迷,mamicode.com
首页 > 其他好文 > 详细

临时记录

时间:2018-06-17 20:15:30      阅读:130      评论:0      收藏:0      [点我收藏+]

标签: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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!