Home
last modified time | relevance | path

Searched refs:enclosingMethodOrLambda (Results 1 – 2 of 2) sorted by relevance

/external/nullaway/nullaway/src/main/java/com/uber/nullaway/handlers/
DStreamNullabilityPropagator.java391 TreePath enclosingMethodOrLambda = in onMatchReturn() local
393 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()
/external/nullaway/nullaway/src/main/java/com/uber/nullaway/
DNullAway.java374 TreePath enclosingMethodOrLambda = in matchReturn() local
376 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() local
1809 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()