Searched refs:enclosingMethodOrLambda (Results 1 – 2 of 2) sorted by relevance
382 TreePath enclosingMethodOrLambda = in onMatchReturn() local384 if (enclosingMethodOrLambda == null) { in onMatchReturn()387 if (!(enclosingMethodOrLambda.getLeaf() instanceof MethodTree in onMatchReturn()388 || enclosingMethodOrLambda.getLeaf() instanceof LambdaExpressionTree)) { in onMatchReturn()392 Tree leaf = enclosingMethodOrLambda.getLeaf(); in onMatchReturn()
289 TreePath enclosingMethodOrLambda = in matchReturn() local291 if (enclosingMethodOrLambda == null) { in matchReturn()294 if (!(enclosingMethodOrLambda.getLeaf() instanceof MethodTree in matchReturn()295 || enclosingMethodOrLambda.getLeaf() instanceof LambdaExpressionTree)) { in matchReturn()299 Tree leaf = enclosingMethodOrLambda.getLeaf(); in matchReturn()1415 TreePath enclosingMethodOrLambda = in checkCastToNonNullTakesNullable() local1418 if (enclosingMethodOrLambda == null) { in checkCastToNonNullTakesNullable()1420 } else if (enclosingMethodOrLambda.getLeaf() instanceof LambdaExpressionTree) { in checkCastToNonNullTakesNullable()1422 } else if (enclosingMethodOrLambda.getLeaf() instanceof MethodTree) { in checkCastToNonNullTakesNullable()1423 MethodTree enclosingMethod = (MethodTree) enclosingMethodOrLambda.getLeaf(); in checkCastToNonNullTakesNullable()