@@ -224,10 +224,7 @@ void resolveNodes() {
224
224
resolveMemberSelectTree ((MemberSelectTree ) node , entry .getValue ());
225
225
} else if (node instanceof NewClassTree ) {
226
226
resolveNewClassTree ((NewClassTree ) node , entry .getValue ());
227
- } else if (node instanceof TypeCastTree ) {
228
- resolveCastTree ((TypeCastTree ) node , entry .getValue ());
229
- System .out .println ("Skipping resolution of [[\n " + node .getClass () + node .toString () + "\n ]]" );
230
- }
227
+ }
231
228
}
232
229
}
233
230
}
@@ -342,30 +339,6 @@ private void resolveMemberSelectTree(MemberSelectTree node, TreePath treePath) {
342
339
}
343
340
344
341
345
- private void resolveCastTree (TypeCastTree node , TreePath treePath ) {
346
- // ignore anonymous classes - otherwise there will be a local reference to itself
347
- System .out .println ("helo" );
348
- // if (node.getIdentifier() != null && node.getClassBody() == null) {
349
- // Element sym = trees.getElement(treePath);
350
- // if (sym != null) {
351
- // TreePath parentPath = treePath.getParentPath();
352
- // Element parentSym = trees.getElement(parentPath);
353
-
354
- // if (parentSym == null || parentSym.getKind() != ElementKind.ENUM_CONSTANT) {
355
- // TreePath identifierTreePath = nodes.get(node.getIdentifier());
356
- // Element identifierSym = trees.getElement(identifierTreePath);
357
- // emitSymbolOccurrence(
358
- // sym,
359
- // node,
360
- // identifierSym.getSimpleName(),
361
- // Role.REFERENCE,
362
- // CompilerRange.FROM_TEXT_SEARCH);
363
- // }
364
- // }
365
- // }
366
- }
367
-
368
-
369
342
private void resolveNewClassTree (NewClassTree node , TreePath treePath ) {
370
343
// ignore anonymous classes - otherwise there will be a local reference to itself
371
344
if (node .getIdentifier () != null && node .getClassBody () == null ) {
0 commit comments