Searched refs:enclosingMethodOrLambda (Results 1 – 2 of 2) sorted by relevance
391 TreePath enclosingMethodOrLambda = in onMatchReturn() local393 if (enclosingMethodOrLambda == null) { in onMatchReturn()396 if (!(enclosingMethodOrLambda.getLeaf() instanceof MethodTree in onMatchReturn()397 || enclosingMethodOrLambda.getLeaf() instanceof LambdaExpressionTree)) { in onMatchReturn()401 Tree leaf = enclosingMethodOrLambda.getLeaf(); in onMatchReturn()
374 TreePath enclosingMethodOrLambda = in matchReturn() local376 if (enclosingMethodOrLambda == null) { in matchReturn()379 if (!(enclosingMethodOrLambda.getLeaf() instanceof MethodTree in matchReturn()380 || enclosingMethodOrLambda.getLeaf() instanceof LambdaExpressionTree)) { in matchReturn()384 Tree leaf = enclosingMethodOrLambda.getLeaf(); in matchReturn()1806 TreePath enclosingMethodOrLambda = in checkCastToNonNullTakesNullable() local1809 if (enclosingMethodOrLambda == null) { in checkCastToNonNullTakesNullable()1811 } else if (enclosingMethodOrLambda.getLeaf() instanceof LambdaExpressionTree) { in checkCastToNonNullTakesNullable()1813 } else if (enclosingMethodOrLambda.getLeaf() instanceof MethodTree) { in checkCastToNonNullTakesNullable()1814 MethodTree enclosingMethod = (MethodTree) enclosingMethodOrLambda.getLeaf(); in checkCastToNonNullTakesNullable()