Lines Matching refs:tsym

130      *  @param tsym          The class or package the members of which are imported.
135 final TypeSymbol tsym,
138 if (tsym.kind == PCK && tsym.members().elems == null && !tsym.exists()) {
140 if (((PackageSymbol)tsym).fullname.equals(names.java_lang)) {
144 log.error(DiagnosticFlag.RESOLVE_ERROR, pos, "doesnt.exist", tsym);
147 env.toplevel.starImportScope.importAll(tsym.members());
152 * @param tsym The class or package the members of which are imported.
157 final TypeSymbol tsym,
162 final TypeSymbol origin = tsym;
167 void importFrom(TypeSymbol tsym) {
168 if (tsym == null || !processed.add(tsym))
172 importFrom(types.supertype(tsym.type).tsym);
173 for (Type t : types.interfaces(tsym.type))
174 importFrom(t.tsym);
176 final Scope fromScope = tsym.members();
187 }.importFrom(tsym);
194 return "import static " + tsym + ".*" + " in " + sourcefile;
196 void importFrom(TypeSymbol tsym) {
197 if (tsym == null || !processed.add(tsym))
201 importFrom(types.supertype(tsym.type).tsym);
202 for (Type t : types.interfaces(tsym.type))
203 importFrom(t.tsym);
205 final Scope fromScope = tsym.members();
217 importFrom(tsym);
239 * @param tsym The class from which the name is imported.
245 final TypeSymbol tsym,
248 if (tsym.kind != TYP) {
255 final TypeSymbol origin = tsym;
260 void importFrom(TypeSymbol tsym) {
261 if (tsym == null || !processed.add(tsym))
265 importFrom(types.supertype(tsym.type).tsym);
266 for (Type t : types.interfaces(tsym.type))
267 importFrom(t.tsym);
269 for (Scope.Entry e = tsym.members().lookup(name);
281 }.importFrom(tsym);
289 return "import static " + tsym + "." + name;
291 void importFrom(TypeSymbol tsym) {
292 if (tsym == null || !processed.add(tsym))
296 importFrom(types.supertype(tsym.type).tsym);
297 for (Type t : types.interfaces(tsym.type))
298 importFrom(t.tsym);
300 for (Scope.Entry e = tsym.members().lookup(name);
317 importFrom(tsym);
322 Kinds.typeKindName(tsym.type),
323 tsym.type);
333 * @param tsym The class to be imported.
337 private void importNamed(DiagnosticPosition pos, Symbol tsym, Env<AttrContext> env) {
338 if (tsym.kind == TYP &&
339 chk.checkUniqueImport(pos, tsym, env.toplevel.namedImportScope))
340 env.toplevel.namedImportScope.enter(tsym, tsym.owner.members());
420 (types.supertype(tree.sym.type).tsym.flags() & Flags.ENUM) == 0) {
544 Type.noType).tsym;
558 TypeSymbol c = attribImportType(imp, localEnv).tsym;
700 mEnv.info.scope.enterIfAbsent(l.head.type.tsym);
807 if (!annotated.add(a.type.tsym))
908 syms.comparableType.tsym)));
1050 baseScope.enter(typarams.head.type.tsym);
1087 return new ErrorType(((ErrorType) t).getOriginalType(), t.tsym) {
1149 ClassSymbol c = synthesizeClass(tree.name, selectedType.tsym);
1160 if (synthesizedSymbols.contains(clazzType.tsym))
1161 synthesizeTyparams((ClassSymbol) clazzType.tsym, tree.arguments.size());
1163 result = new ErrorType(tree.type, clazzType.tsym) {
1237 (types.supertype(c.type).tsym == syms.enumSym ||