File tree Expand file tree Collapse file tree 1 file changed +1
-16
lines changed
java/com/google/turbine/processing Expand file tree Collapse file tree 1 file changed +1
-16
lines changed Original file line number Diff line number Diff line change 50
50
import com .google .turbine .model .Const ;
51
51
import com .google .turbine .model .Const .ArrayInitValue ;
52
52
import com .google .turbine .model .TurbineFlag ;
53
- import com .google .turbine .tree .Tree ;
54
53
import com .google .turbine .tree .Tree .MethDecl ;
55
- import com .google .turbine .tree .Tree .TyDecl ;
56
54
import com .google .turbine .tree .Tree .VarDecl ;
57
55
import com .google .turbine .type .AnnoInfo ;
58
56
import com .google .turbine .type .Type ;
@@ -266,22 +264,9 @@ public TypeMirror get() {
266
264
case CLASS :
267
265
case ENUM :
268
266
case RECORD :
269
- if (info .superclass () != null ) {
267
+ if (info .superClassType () != null ) {
270
268
return factory .asTypeMirror (info .superClassType ());
271
269
}
272
- if (info instanceof SourceTypeBoundClass ) {
273
- // support simple names for stuff that doesn't exist
274
- TyDecl decl = ((SourceTypeBoundClass ) info ).decl ();
275
- if (decl .xtnds ().isPresent ()) {
276
- ArrayDeque <Tree .Ident > flat = new ArrayDeque <>();
277
- for (Tree .ClassTy curr = decl .xtnds ().get ();
278
- curr != null ;
279
- curr = curr .base ().orElse (null )) {
280
- flat .addFirst (curr .name ());
281
- }
282
- return factory .asTypeMirror (ErrorTy .create (flat ));
283
- }
284
- }
285
270
return factory .noType ();
286
271
case INTERFACE :
287
272
case ANNOTATION :
You can’t perform that action at this time.
0 commit comments