Home
last modified time | relevance | path

Searched refs:blockStmt (Results 1 – 20 of 20) sorted by relevance

/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DStatementContext.java52 NodeWithStatements<?> blockStmt = (NodeWithStatements<?>) requireParentNode(stmt); in solveInBlock() local
54 for (int i = 0; i < blockStmt.getStatements().size(); i++) { in solveInBlock()
55 if (blockStmt.getStatements().get(i).equals(stmt)) { in solveInBlock()
63 …SymbolDeclarator symbolDeclarator = JavaParserFactory.getSymbolDeclarator(blockStmt.getStatements(… in solveInBlock()
78 NodeWithStatements<?> blockStmt = (NodeWithStatements<?>) requireParentNode(stmt); in solveInBlockAsValue() local
80 for (int i = 0; i < blockStmt.getStatements().size(); i++) { in solveInBlockAsValue()
81 if (blockStmt.getStatements().get(i).equals(stmt)) { in solveInBlockAsValue()
89 …SymbolDeclarator symbolDeclarator = JavaParserFactory.getSymbolDeclarator(blockStmt.getStatements(… in solveInBlockAsValue()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DStatementContext.java52 NodeWithStatements<?> blockStmt = (NodeWithStatements<?>) getParentNode(stmt); in solveInBlock() local
54 for (int i = 0; i < blockStmt.getStatements().size(); i++) { in solveInBlock()
55 if (blockStmt.getStatements().get(i).equals(stmt)) { in solveInBlock()
63 …SymbolDeclarator symbolDeclarator = JavaParserFactory.getSymbolDeclarator(blockStmt.getStatements(… in solveInBlock()
78 NodeWithStatements<?> blockStmt = (NodeWithStatements<?>) getParentNode(stmt); in solveInBlockAsValue() local
80 for (int i = 0; i < blockStmt.getStatements().size(); i++) { in solveInBlockAsValue()
81 if (blockStmt.getStatements().get(i).equals(stmt)) { in solveInBlockAsValue()
89 …SymbolDeclarator symbolDeclarator = JavaParserFactory.getSymbolDeclarator(blockStmt.getStatements(… in solveInBlockAsValue()
/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_contexts_StatementContext.txt3 Line 54) blockStmt.getStatements().size() ==> com.github.javaparser.ast.NodeList.size()
4 …Line 54) blockStmt.getStatements() ==> com.github.javaparser.ast.nodeTypes.NodeWithStatements.getS…
5 …Line 55) blockStmt.getStatements().get(i).equals(stmt) ==> com.github.javaparser.ast.Node.equals(j…
6 Line 55) blockStmt.getStatements().get(i) ==> com.github.javaparser.ast.NodeList.get(int)
7 …Line 55) blockStmt.getStatements() ==> com.github.javaparser.ast.nodeTypes.NodeWithStatements.getS…
8 …Line 63) JavaParserFactory.getSymbolDeclarator(blockStmt.getStatements().get(i), typeSolver) ==> c…
9 Line 63) blockStmt.getStatements().get(i) ==> com.github.javaparser.ast.NodeList.get(int)
10 …Line 63) blockStmt.getStatements() ==> com.github.javaparser.ast.nodeTypes.NodeWithStatements.getS…
18 Line 80) blockStmt.getStatements().size() ==> com.github.javaparser.ast.NodeList.size()
19 …Line 80) blockStmt.getStatements() ==> com.github.javaparser.ast.nodeTypes.NodeWithStatements.getS…
[all …]
Dcom_github_javaparser_symbolsolver_javaparsermodel_TypeExtractor.txt199 Line 425) blockStmt.getStatements() ==> com.github.javaparser.ast.stmt.BlockStmt.getStatements()
200 …Line 428) blockStmt.getNodesByType(ReturnStmt.class) ==> com.github.javaparser.ast.Node.getNodesBy…
Dcom_github_javaparser_symbolsolver_javaparsermodel_TypeExtractor_J9.txt199 Line 425) blockStmt.getStatements() ==> com.github.javaparser.ast.stmt.BlockStmt.getStatements()
200 …Line 428) blockStmt.getNodesByType(ReturnStmt.class) ==> com.github.javaparser.ast.Node.getNodesBy…
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/
DTransformationsTest.java160 BlockStmt blockStmt = LexicalPreservingPrinter.setup(StaticJavaParser.parseBlock("{" + EOL + in issue2099AddingStatementAfterTraillingComment1() local
165 blockStmt.addStatement(statement); in issue2099AddingStatementAfterTraillingComment1()
166 String s = LexicalPreservingPrinter.print(blockStmt); in issue2099AddingStatementAfterTraillingComment1()
184 BlockStmt blockStmt = LexicalPreservingPrinter.setup(StaticJavaParser.parseBlock("{" + EOL + in issue2099AddingStatementAfterTraillingComment2() local
189 blockStmt.addStatement(statement); in issue2099AddingStatementAfterTraillingComment2()
190 String s = LexicalPreservingPrinter.print(blockStmt); in issue2099AddingStatementAfterTraillingComment2()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DContextTest.java605 BlockStmt blockStmt = cu.findAll(BlockStmt.class).get(0); in localVariableDeclarationInScope() local
606 Context context1 = JavaParserFactory.getContext(blockStmt, typeSolver); in localVariableDeclarationInScope()
607 assertEquals(1, context1.localVariablesExposedToChild(blockStmt.getStatement(1)).size()); in localVariableDeclarationInScope()
682 BlockStmt blockStmt = parse("{ preStatement(); int a = 1, b = 2; otherStatement(); }", in localVariablesExposedToChildWithinABlock() local
684 assertNoVarsExposedToChildInContextNamed(blockStmt, blockStmt.getStatement(0), "a"); in localVariablesExposedToChildWithinABlock()
685 assertNoVarsExposedToChildInContextNamed(blockStmt, blockStmt.getStatement(0), "b"); in localVariablesExposedToChildWithinABlock()
686 assertOneVarExposedToChildInContextNamed(blockStmt, blockStmt.getStatement(2), "a"); in localVariablesExposedToChildWithinABlock()
687 assertOneVarExposedToChildInContextNamed(blockStmt, blockStmt.getStatement(2), "b"); in localVariablesExposedToChildWithinABlock()
689 … VariableDeclarationExpr varDecl = blockStmt.getStatement(1).asExpressionStmt().getExpression() in localVariablesExposedToChildWithinABlock()
/external/javaparser/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/
DManipulationSteps.java59 private BlockStmt blockStmt; field in ManipulationSteps
75 blockStmt = new BlockStmt(); in givenABlockStatement()
107 blockStmt = parseBlock(value); in whenIsTheStringIsParsedByTheJavaParser()
227 Statement statementUnderTest = blockStmt.getStatement(position - 1); in thenTheBlockStmtContentIs()
DParsingSteps.java168 BlockStmt blockStmt = lambdaExpr.getBody().asBlockStmt(); in thenLambdaInStatementInMethodInClassBlockStatementIsNull() local
169 assertEquals(true, blockStmt.getStatements().isEmpty()); in thenLambdaInStatementInMethodInClassBlockStatementIsNull()
184 BlockStmt blockStmt = lambdaExpr.getBody().asBlockStmt(); in thenLambdaInStatementInMethodInClassBlockStatement() local
185 Statement lambdaStmt = blockStmt.getStatement(0); in thenLambdaInStatementInMethodInClassBlockStatement()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/body/
DFieldDeclaration.java210 BlockStmt blockStmt = new BlockStmt(); in createGetter() local
211 getter.setBody(blockStmt); in createGetter()
212 blockStmt.addStatement(new ReturnStmt(name(fieldName))); in createGetter()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/body/
DFieldDeclaration.java186 BlockStmt blockStmt = new BlockStmt(); in createGetter() local
187 getter.setBody(blockStmt); in createGetter()
188 blockStmt.addStatement(new ReturnStmt(fieldName)); in createGetter()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/constraintformulas/
DExpressionCompatibleWithType.java262 private List<Expression> getAllReturnExpressions(BlockStmt blockStmt) { in getAllReturnExpressions() argument
263 return blockStmt.findAll(ReturnStmt.class).stream() in getAllReturnExpressions()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/
DExpressionHelper.java130 public static List<Expression> getResultExpressions(BlockStmt blockStmt) { in getResultExpressions() argument
/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.java424 BlockStmt blockStmt = (BlockStmt) lambdaExpr.getBody(); in visit() local
425 NodeList<Statement> statements = blockStmt.getStatements(); in visit()
428 List<ReturnStmt> returnStmts = blockStmt.getNodesByType(ReturnStmt.class); in visit()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/
DJavaParserTest.java256 BlockStmt blockStmt = parseBlock("{} // hello"); in trailingWhitespaceIsIgnored() local
257 assertEquals("{}", blockStmt.getTokenRange().get().toString()); in trailingWhitespaceIsIgnored()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/expected_output/
Dcom_github_javaparser_ast_body_FieldDeclaration.txt42 …Line 211) getter.setBody(blockStmt) ==> com.github.javaparser.ast.body.MethodDeclaration.setBody(c…
43 …Line 212) blockStmt.addStatement(new ReturnStmt(name(fieldName))) ==> com.github.javaparser.ast.no…
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/
DTypeExtractor.java417 BlockStmt blockStmt = (BlockStmt) lambdaExpr.getBody(); in visit() local
420 List<ReturnStmt> returnStmts = blockStmt.findAll(ReturnStmt.class); in visit()
/external/skia/src/sksl/
DSkSLDehydrator.cpp449 for (const std::unique_ptr<Statement>& blockStmt : b.children()) { in write() local
450 this->write(blockStmt.get()); in write()
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/
Djavaparser-core-3.0.0-alpha.2.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/github/ com/ ...
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/lib/
Djavaparser-core-3.3.0.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/github/ com/ ...