langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Enter.java
changeset 29776 984a79b71cfe
parent 28589 cbf8df194957
child 29842 826ac2519523
equal deleted inserted replaced
29775:dc7df633fea1 29776:984a79b71cfe
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   190         localEnv.enclClass = tree;
   190         localEnv.enclClass = tree;
   191         localEnv.outer = env;
   191         localEnv.outer = env;
   192         localEnv.info.isSelfCall = false;
   192         localEnv.info.isSelfCall = false;
   193         localEnv.info.lint = null; // leave this to be filled in by Attr,
   193         localEnv.info.lint = null; // leave this to be filled in by Attr,
   194                                    // when annotations have been processed
   194                                    // when annotations have been processed
       
   195         localEnv.info.isAnonymousDiamond = TreeInfo.isDiamond(env.tree);
   195         return localEnv;
   196         return localEnv;
   196     }
   197     }
   197 
   198 
   198     /** Create a fresh environment for toplevels.
   199     /** Create a fresh environment for toplevels.
   199      *  @param tree     The toplevel tree.
   200      *  @param tree     The toplevel tree.