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.java382 TreePath enclosingMethodOrLambda = in onMatchReturn() local
384 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()
/external/nullaway/nullaway/src/main/java/com/uber/nullaway/
DNullAway.java289 TreePath enclosingMethodOrLambda = in matchReturn() local
291 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() local
1418 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()