Searched refs:blockStmt (Results 1 – 20 of 20) sorted by relevance
52 NodeWithStatements<?> blockStmt = (NodeWithStatements<?>) requireParentNode(stmt); in solveInBlock() local54 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() local80 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()
52 NodeWithStatements<?> blockStmt = (NodeWithStatements<?>) getParentNode(stmt); in solveInBlock() local54 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() local80 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()
3 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 …]
199 Line 425) blockStmt.getStatements() ==> com.github.javaparser.ast.stmt.BlockStmt.getStatements()200 …Line 428) blockStmt.getNodesByType(ReturnStmt.class) ==> com.github.javaparser.ast.Node.getNodesBy…
160 BlockStmt blockStmt = LexicalPreservingPrinter.setup(StaticJavaParser.parseBlock("{" + EOL + in issue2099AddingStatementAfterTraillingComment1() local165 blockStmt.addStatement(statement); in issue2099AddingStatementAfterTraillingComment1()166 String s = LexicalPreservingPrinter.print(blockStmt); in issue2099AddingStatementAfterTraillingComment1()184 BlockStmt blockStmt = LexicalPreservingPrinter.setup(StaticJavaParser.parseBlock("{" + EOL + in issue2099AddingStatementAfterTraillingComment2() local189 blockStmt.addStatement(statement); in issue2099AddingStatementAfterTraillingComment2()190 String s = LexicalPreservingPrinter.print(blockStmt); in issue2099AddingStatementAfterTraillingComment2()
605 BlockStmt blockStmt = cu.findAll(BlockStmt.class).get(0); in localVariableDeclarationInScope() local606 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() local684 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()
59 private BlockStmt blockStmt; field in ManipulationSteps75 blockStmt = new BlockStmt(); in givenABlockStatement()107 blockStmt = parseBlock(value); in whenIsTheStringIsParsedByTheJavaParser()227 Statement statementUnderTest = blockStmt.getStatement(position - 1); in thenTheBlockStmtContentIs()
168 BlockStmt blockStmt = lambdaExpr.getBody().asBlockStmt(); in thenLambdaInStatementInMethodInClassBlockStatementIsNull() local169 assertEquals(true, blockStmt.getStatements().isEmpty()); in thenLambdaInStatementInMethodInClassBlockStatementIsNull()184 BlockStmt blockStmt = lambdaExpr.getBody().asBlockStmt(); in thenLambdaInStatementInMethodInClassBlockStatement() local185 Statement lambdaStmt = blockStmt.getStatement(0); in thenLambdaInStatementInMethodInClassBlockStatement()
210 BlockStmt blockStmt = new BlockStmt(); in createGetter() local211 getter.setBody(blockStmt); in createGetter()212 blockStmt.addStatement(new ReturnStmt(name(fieldName))); in createGetter()
186 BlockStmt blockStmt = new BlockStmt(); in createGetter() local187 getter.setBody(blockStmt); in createGetter()188 blockStmt.addStatement(new ReturnStmt(fieldName)); in createGetter()
262 private List<Expression> getAllReturnExpressions(BlockStmt blockStmt) { in getAllReturnExpressions() argument263 return blockStmt.findAll(ReturnStmt.class).stream() in getAllReturnExpressions()
130 public static List<Expression> getResultExpressions(BlockStmt blockStmt) { in getResultExpressions() argument
424 BlockStmt blockStmt = (BlockStmt) lambdaExpr.getBody(); in visit() local425 NodeList<Statement> statements = blockStmt.getStatements(); in visit()428 List<ReturnStmt> returnStmts = blockStmt.getNodesByType(ReturnStmt.class); in visit()
256 BlockStmt blockStmt = parseBlock("{} // hello"); in trailingWhitespaceIsIgnored() local257 assertEquals("{}", blockStmt.getTokenRange().get().toString()); in trailingWhitespaceIsIgnored()
42 …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…
417 BlockStmt blockStmt = (BlockStmt) lambdaExpr.getBody(); in visit() local420 List<ReturnStmt> returnStmts = blockStmt.findAll(ReturnStmt.class); in visit()
449 for (const std::unique_ptr<Statement>& blockStmt : b.children()) { in write() local450 this->write(blockStmt.get()); in write()
META-INF/MANIFEST.MF META-INF/ com/ com/github/ com/ ...