Home
last modified time | relevance | path

Searched refs:returnStmt (Results 1 – 18 of 18) sorted by relevance

/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DLambdaResolutionTest.java40 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in lambdaMapParameter() local
41 MethodCallExpr methodCallExpr = (MethodCallExpr) returnStmt.getExpression().get(); in lambdaMapParameter()
54 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in personsStream() local
55 Expression expression = returnStmt.getExpression().get(); in personsStream()
86 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in lambdaReduce() local
87 Expression expr = returnStmt.getExpression().get(); in lambdaReduce()
99 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in lambdaPrint() local
100 Expression expr = returnStmt.getExpression().get(); in lambdaPrint()
112 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in lambdaBifunc() local
113 Expression expr = returnStmt.getExpression().get(); in lambdaBifunc()
[all …]
DFieldsResolutionTest.java60 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in accessClassFieldThroughThis() local
61 Expression expression = returnStmt.getExpression().get(); in accessClassFieldThroughThis()
102 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in accessEnumMethodThroughThis() local
103 Expression expression = returnStmt.getExpression().get(); in accessEnumMethodThroughThis()
114 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in accessClassFieldThroughSuper() local
115 Expression expression = returnStmt.getExpression().get(); in accessClassFieldThroughSuper()
130 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in resolveClassFieldThroughThis() local
131 FieldAccessExpr expression = returnStmt.getExpression().get().asFieldAccessExpr(); in resolveClassFieldThroughThis()
152 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in resolveClassFieldThroughSuper() local
153 FieldAccessExpr expression = returnStmt.getExpression().get().asFieldAccessExpr(); in resolveClassFieldThroughSuper()
[all …]
DGenericsResolutionTest.java305 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in classCast() local
307 …ResolvedType type = JavaParserFacade.get(new ReflectionTypeSolver()).getType(returnStmt.getExpress… in classCast()
358 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in typeParamOnReturnType() local
360 …ResolvedType type = JavaParserFacade.get(new ReflectionTypeSolver()).getType(returnStmt.getExpress… in typeParamOnReturnType()
425 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in genericCollectionWithWildcardsAndExtensions() local
428 Expression returnStmtExpr = returnStmt.getExpression().get(); in genericCollectionWithWildcardsAndExtensions()
457 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in genericCollectionWithWildcards() local
460 Expression returnStmtExpr = returnStmt.getExpression().get(); in genericCollectionWithWildcards()
DEnumResolutionTest.java77 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in resolveEnumConstantAccess() local
78 FieldAccessExpr expression = returnStmt.getExpression().get().asFieldAccessExpr(); in resolveEnumConstantAccess()
DMethodsResolutionTest.java110 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in solveMethodAccessThroughSuper() local
111 Expression expression = returnStmt.getExpression().get(); in solveMethodAccessThroughSuper()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/
DJavaParserTest.java179 ReturnStmt returnStmt = methodDeclaration.getBody().get().getStatement(0).asReturnStmt(); in rangeOfIntersectionType() local
180 CastExpr castExpr = returnStmt.getExpression().get().asCastExpr(); in rangeOfIntersectionType()
193 ReturnStmt returnStmt = methodDeclaration.getBody().get().getStatement(0).asReturnStmt(); in rangeOfCast() local
194 CastExpr castExpr = returnStmt.getExpression().get().asCastExpr(); in rangeOfCast()
206 ReturnStmt returnStmt = methodDeclaration.getBody().get().getStatement(0).asReturnStmt(); in rangeOfCastNonIntersection() local
207 CastExpr castExpr = returnStmt.getExpression().get().asCastExpr(); in rangeOfCastNonIntersection()
219 ReturnStmt returnStmt = methodDeclaration.getBody().get().getStatement(0).asReturnStmt(); in rangeOfLambda() local
220 CastExpr castExpr = returnStmt.getExpression().get().asCastExpr(); in rangeOfLambda()
235 ReturnStmt returnStmt = methodDeclaration.getBody().get().getStatement(0).asReturnStmt(); in rangeOfLambdaBody() local
236 CastExpr castExpr = returnStmt.getExpression().get().asCastExpr(); in rangeOfLambdaBody()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/naming/
DNameLogicTest.java414 ReturnStmt returnStmt = methodFoo.getBody().get().getStatements().get(0).asReturnStmt(); in identifyNamesInSimpleExamples() local
415 assertEquals(false, NameLogic.isAName(returnStmt)); in identifyNamesInSimpleExamples()
416 assertEquals(true, NameLogic.isAName(returnStmt.getExpression().get())); in identifyNamesInSimpleExamples()
417 FieldAccessExpr fieldAccessExpr = returnStmt.getExpression().get().asFieldAccessExpr(); in identifyNamesInSimpleExamples()
451 ReturnStmt returnStmt = methodFoo.getBody().get().getStatements().get(0).asReturnStmt(); in identifyNameRolesInSimpleExamples() local
452 … assertEquals(REFERENCE, NameLogic.classifyRole(returnStmt.getExpression().get())); // a.b.c.D.e in identifyNameRolesInSimpleExamples()
453 FieldAccessExpr fieldAccessExpr = returnStmt.getExpression().get().asFieldAccessExpr(); in identifyNameRolesInSimpleExamples()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/reflectionmodel/
DSymbolResolutionResolutionTest.java65 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in conditionalExpressionExample() local
66 Expression expression = returnStmt.getExpression().get(); in conditionalExpressionExample()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/
DLambdaExprContextResolutionTest.java63 ReturnStmt returnStmt = Navigator.findReturnStmt(method); in solveParameterOfLambdaInMethodCallExpr() local
64 MethodCallExpr methodCallExpr = (MethodCallExpr) returnStmt.getExpression().get(); in solveParameterOfLambdaInMethodCallExpr()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_javaparsermodel_TypeExtractor.txt202 Line 432) returnStmts.stream().map(returnStmt -> {
203 Optional<Expression> expression = returnStmt.getExpression();
210 Line 432) returnStmts.stream().map(returnStmt -> {
211 Optional<Expression> expression = returnStmt.getExpression();
218 Line 432) returnStmts.stream().map(returnStmt -> {
219 Optional<Expression> expression = returnStmt.getExpression();
226 Line 432) returnStmts.stream().map(returnStmt -> {
227 Optional<Expression> expression = returnStmt.getExpression();
235 Line 434) returnStmt.getExpression() ==> com.github.javaparser.ast.stmt.ReturnStmt.getExpression()
Dcom_github_javaparser_symbolsolver_javaparsermodel_TypeExtractor_J9.txt202 Line 432) returnStmts.stream().map(returnStmt -> {
203 Optional<Expression> expression = returnStmt.getExpression();
210 Line 432) returnStmts.stream().map(returnStmt -> {
211 Optional<Expression> expression = returnStmt.getExpression();
218 Line 432) returnStmts.stream().map(returnStmt -> {
219 Optional<Expression> expression = returnStmt.getExpression();
226 Line 432) returnStmts.stream().map(returnStmt -> {
227 Optional<Expression> expression = returnStmt.getExpression();
235 Line 434) returnStmt.getExpression() ==> com.github.javaparser.ast.stmt.ReturnStmt.getExpression()
/external/javaparser/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/
DParsingSteps.java268 …ReturnStmt returnStmt = getStatementInMethodInClass(statementPosition, methodPosition, classPositi… in thenLambdaInConditionalExpressionInMethodInClassIsParentOfContainedParameter() local
269 ConditionalExpr conditionalExpr = (ConditionalExpr) returnStmt.getExpression().orElse(null); in thenLambdaInConditionalExpressionInMethodInClassIsParentOfContainedParameter()
/external/clang/unittests/ASTMatchers/
DASTMatchersTraversalTest.cpp1969 StatementMatcher RetVal = returnStmt(hasReturnValue(binaryOperator())); in TEST()
1994 returnStmt(forFunction(hasName("operator=")), in TEST()
1999 returnStmt(forFunction(hasName("operator=")), in TEST()
2004 returnStmt(forFunction(hasName("operator()")), in TEST()
2006 EXPECT_TRUE(matches(CppString2, returnStmt(forFunction(hasName("F2"))))); in TEST()
2007 EXPECT_TRUE(notMatches(CppString2, returnStmt(forFunction(hasName("F"))))); in TEST()
DASTMatchersNodeTest.cpp296 EXPECT_TRUE(matches("void f() { return; }", returnStmt())); in TEST()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/
DTypeExtractor.java424 ….map(returnStmt -> returnStmt.getExpression().map(e -> facade.getType(e)).orElse(ResolvedVoidType.… in visit()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/javaparsermodel/
DTypeExtractor.java433 .map(returnStmt -> { in visit()
434 Optional<Expression> expression = returnStmt.getExpression(); in visit()
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp378 REGISTER_MATCHER(returnStmt); in RegistryMaps()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h1511 const internal::VariadicDynCastAllOfMatcher<Stmt, ReturnStmt> returnStmt; variable