Home
last modified time | relevance | path

Searched refs:ReturnStmt (Results 1 – 25 of 150) sorted by relevance

123456

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/
DReturnStmt.java44 public final class ReturnStmt extends Statement { class
49 public ReturnStmt() { in ReturnStmt() method in ReturnStmt
54 public ReturnStmt(final Expression expression) { in ReturnStmt() method in ReturnStmt
62 public ReturnStmt(TokenRange tokenRange, Expression expression) { in ReturnStmt() method in ReturnStmt
71 public ReturnStmt(String expression) { in ReturnStmt() method in ReturnStmt
99 public ReturnStmt setExpression(final Expression expression) { in setExpression()
101 return (ReturnStmt) this; in setExpression()
126 public ReturnStmt removeExpression() { in removeExpression()
132 public ReturnStmt clone() { in clone()
133 return (ReturnStmt) accept(new CloneVisitor(), null); in clone()
[all …]
DStatement.java219 public ReturnStmt asReturnStmt() { in asReturnStmt()
346 public void ifReturnStmt(Consumer<ReturnStmt> action) { in ifReturnStmt()
443 public Optional<ReturnStmt> toReturnStmt() { in toReturnStmt()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/stmt/
DReturnStmt.java33 public final class ReturnStmt extends Statement { class
37 public ReturnStmt() { in ReturnStmt() method in ReturnStmt
40 public ReturnStmt(final Expression expr) { in ReturnStmt() method in ReturnStmt
44 public ReturnStmt(Range range, final Expression expr) { in ReturnStmt() method in ReturnStmt
54 public ReturnStmt(String expr) { in ReturnStmt() method in ReturnStmt
71 public ReturnStmt setExpr(final Expression expr) { in setExpr()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DLambdaResolutionTest.java25 import com.github.javaparser.ast.stmt.ReturnStmt;
41 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in lambdaMapParameter()
55 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in personsStream()
70 ReturnStmt returnStmt1 = Navigator.findReturnStmt(m1); in lambdaMap()
71 ReturnStmt returnStmt2 = Navigator.findReturnStmt(m2); in lambdaMap()
87 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in lambdaReduce()
100 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in lambdaBifunc()
113 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in lambdaCollectParam()
128 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in lambdaCollect()
141 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in lambdaBlockExplicitReturn()
[all …]
DFieldsResolutionTest.java24 import com.github.javaparser.ast.stmt.ReturnStmt;
47 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in accessClassFieldThroughThis()
89 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in accessEnumMethodThroughThis()
101 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in accessFieldThroughSuper()
DVariadicResolutionTest.java24 import com.github.javaparser.ast.stmt.ReturnStmt;
49 ReturnStmt stmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in issue7()
DGenericsResolutionTest.java29 import com.github.javaparser.ast.stmt.ReturnStmt;
277 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in classCast()
330 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in typeParamOnReturnType()
397 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in genericCollectionWithWildcardsAndExtensions()
429 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in genericCollectionWithWildcards()
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javaparser_methodcalls_expected_output/
Dcom_github_javaparser_ast_stmt_ReturnStmt.txt1 …Line 41) setExpr(expr) ==> com.github.javaparser.ast.stmt.ReturnStmt.setExpr(com.github.javaparser…
2 …Line 46) setExpr(expr) ==> com.github.javaparser.ast.stmt.ReturnStmt.setExpr(com.github.javaparser…
3 …Line 55) setExpr(new NameExpr(expr)) ==> com.github.javaparser.ast.stmt.ReturnStmt.setExpr(com.git…
4 …om.github.javaparser.ast.visitor.GenericVisitor.visit(com.github.javaparser.ast.stmt.ReturnStmt, A)
5 …> com.github.javaparser.ast.visitor.VoidVisitor.visit(com.github.javaparser.ast.stmt.ReturnStmt, A)
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/stmt/
DReturnStmt.java31 public final class ReturnStmt extends Statement { class
35 public ReturnStmt() { in ReturnStmt() method in ReturnStmt
38 public ReturnStmt(final Expression expr) { in ReturnStmt() method in ReturnStmt
42 …public ReturnStmt(final int beginLine, final int beginColumn, final int endLine, final int endColu… in ReturnStmt() method in ReturnStmt
/external/clang/lib/StaticAnalyzer/Checkers/
DReturnPointerRangeChecker.cpp27 public Checker< check::PreStmt<ReturnStmt> > {
31 void checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const;
35 void ReturnPointerRangeChecker::checkPreStmt(const ReturnStmt *RS, in checkPreStmt()
DReturnUndefChecker.cpp27 class ReturnUndefChecker : public Checker< check::PreStmt<ReturnStmt> > {
35 void checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const;
39 void ReturnUndefChecker::checkPreStmt(const ReturnStmt *RS, in checkPreStmt()
DVforkChecker.cpp46 check::Bind, check::PreStmt<ReturnStmt>> {
65 void checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const;
210 void VforkChecker::checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const { in checkPreStmt()
DStackAddrEscapeChecker.cpp29 class StackAddrEscapeChecker : public Checker< check::PreStmt<ReturnStmt>,
35 void checkPreStmt(const ReturnStmt *RS, CheckerContext &C) const;
119 void StackAddrEscapeChecker::checkPreStmt(const ReturnStmt *RS, in checkPreStmt()
DCheckerDocumentation.cpp37 class CheckerDocumentation : public Checker< check::PreStmt<ReturnStmt>,
71 void checkPreStmt(const ReturnStmt *DS, CheckerContext &C) const {} in checkPreStmt()
DIdenticalExprChecker.cpp365 const ReturnStmt *ReturnStmt1 = cast<ReturnStmt>(Stmt1); in isIdenticalStmt()
366 const ReturnStmt *ReturnStmt2 = cast<ReturnStmt>(Stmt2); in isIdenticalStmt()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/
DIssue200.java9 import com.github.javaparser.ast.stmt.ReturnStmt;
30 List<ReturnStmt> nodesByType = methodDeclaration.findAll(ReturnStmt.class); in issue200()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/builders/
DFieldDeclarationBuildersTest.java27 import com.github.javaparser.ast.stmt.ReturnStmt;
62 assertEquals(ReturnStmt.class, getter.getBody().get().getStatement(0).getClass()); in testCreateGetterInAClass()
89 assertEquals(ReturnStmt.class, getter.getBody().get().getStatement(0).getClass()); in testCreateGetterInEnum()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/
DJavaParserTest.java133 ReturnStmt returnStmt = methodDeclaration.getBody().get().getStatement(0).asReturnStmt(); in rangeOfIntersectionType()
147 ReturnStmt returnStmt = methodDeclaration.getBody().get().getStatement(0).asReturnStmt(); in rangeOfCast()
160 ReturnStmt returnStmt = methodDeclaration.getBody().get().getStatement(0).asReturnStmt(); in rangeOfCastNonIntersection()
173 ReturnStmt returnStmt = methodDeclaration.getBody().get().getStatement(0).asReturnStmt(); in rangeOfLambda()
189 ReturnStmt returnStmt = methodDeclaration.getBody().get().getStatement(0).asReturnStmt(); in rangeOfLambdaBody()
/external/clang/test/Index/
Dusrs.m184 // CHECK-source: usrs.m:3:45: ReturnStmt= Extent=[3:45 - 3:57]
223 // CHECK-source: usrs.m:38:3: ReturnStmt= Extent=[38:3 - 38:11]
231 // CHECK-source: usrs.m:42:3: ReturnStmt= Extent=[42:3 - 42:11]
239 // CHECK-source: usrs.m:49:32: ReturnStmt= Extent=[49:32 - 49:40]
260 // CHECK-source: usrs.m:64:16: ReturnStmt= Extent=[64:16 - 64:24]
266 // CHECK-source: usrs.m:65:16: ReturnStmt= Extent=[65:16 - 65:24]
272 // CHECK-source: usrs.m:66:16: ReturnStmt= Extent=[66:16 - 66:24]
280 // CHECK-source: usrs.m:69:16: ReturnStmt= Extent=[69:16 - 69:24]
302 // CHECK-source: usrs.m:76:3: ReturnStmt= Extent=[76:3 - 76:11]
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparser/
DNavigator.java25 import com.github.javaparser.ast.stmt.ReturnStmt;
179 public static ReturnStmt findReturnStmt(MethodDeclaration method) { in findReturnStmt()
180 return findNodeOfGivenClass(method, ReturnStmt.class); in findReturnStmt()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/
DExpressionHelper.java7 import com.github.javaparser.ast.stmt.ReturnStmt;
104 if (parent instanceof ReturnStmt) { in appearsInAssignmentContext()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/reflectionmodel/
DSymbolResolutionResolutionTest.java26 import com.github.javaparser.ast.stmt.ReturnStmt;
66 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in conditionalExpressionExample()
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/other/
DTokenKindGenerator.java11 import com.github.javaparser.ast.stmt.ReturnStmt;
62 … final SwitchEntryStmt entry = new SwitchEntryStmt(kind, new NodeList<>(new ReturnStmt(name))); in generateValueOfEntry()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/
DExpressionCompatibleWithType.java263 return blockStmt.findAll(ReturnStmt.class).stream() in getAllReturnExpressions()
277 List<ReturnStmt> returnStmts = statement.findAll(ReturnStmt.class); in isValueCompatibleBlock()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/
DLambdaExprContextResolutionTest.java24 import com.github.javaparser.ast.stmt.ReturnStmt;
61 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in solveParameterOfLambdaInMethodCallExpr()

123456