Merge pull request #3106 from aschackmull/java/getstmtbody-type

Java: Sharpen return type of LambdaExpr.getStmtBody().
This commit is contained in:
yo-h
2020-03-24 19:20:57 -04:00
committed by GitHub

View File

@@ -1016,7 +1016,7 @@ class LambdaExpr extends FunctionalExpr, @lambdaexpr {
}
/** Gets the body of this lambda expression, if it is a statement. */
Stmt getStmtBody() { hasStmtBody() and result = asMethod().getBody() }
Block getStmtBody() { hasStmtBody() and result = asMethod().getBody() }
/** Gets a printable representation of this expression. */
override string toString() { result = "...->..." }