equal
deleted
inserted
replaced
2004 /** Find an unqualified type symbol. |
2004 /** Find an unqualified type symbol. |
2005 * @param env The current environment. |
2005 * @param env The current environment. |
2006 * @param name The type's name. |
2006 * @param name The type's name. |
2007 */ |
2007 */ |
2008 Symbol findType(Env<AttrContext> env, Name name) { |
2008 Symbol findType(Env<AttrContext> env, Name name) { |
|
2009 if (name == names.empty) |
|
2010 return typeNotFound; // do not allow inadvertent "lookup" of anonymous types |
2009 Symbol bestSoFar = typeNotFound; |
2011 Symbol bestSoFar = typeNotFound; |
2010 Symbol sym; |
2012 Symbol sym; |
2011 boolean staticOnly = false; |
2013 boolean staticOnly = false; |
2012 for (Env<AttrContext> env1 = env; env1.outer != null; env1 = env1.outer) { |
2014 for (Env<AttrContext> env1 = env; env1.outer != null; env1 = env1.outer) { |
2013 if (isStatic(env1)) staticOnly = true; |
2015 if (isStatic(env1)) staticOnly = true; |