Home
last modified time | relevance | path

Searched refs:TryStmt (Results 1 – 25 of 81) sorted by relevance

1234

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/
DTryStmt.java95 public class TryStmt extends Statement { class
106 public TryStmt() { in TryStmt() method in TryStmt
110 …public TryStmt(final BlockStmt tryBlock, final NodeList<CatchClause> catchClauses, final BlockStmt… in TryStmt() method in TryStmt
115 …public TryStmt(NodeList<Expression> resources, final BlockStmt tryBlock, final NodeList<CatchClaus… in TryStmt() method in TryStmt
123 …public TryStmt(TokenRange tokenRange, NodeList<Expression> resources, BlockStmt tryBlock, NodeList… in TryStmt() method in TryStmt
165 public TryStmt setCatchClauses(final NodeList<CatchClause> catchClauses) { in setCatchClauses()
168 return (TryStmt) this; in setCatchClauses()
179 public TryStmt setFinallyBlock(final BlockStmt finallyBlock) { in setFinallyBlock()
181 return (TryStmt) this; in setFinallyBlock()
192 public TryStmt setTryBlock(final BlockStmt tryBlock) { in setTryBlock()
[all …]
DStatement.java249 public TryStmt asTryStmt() { in asTryStmt()
338 public void ifTryStmt(Consumer<TryStmt> action) { in ifTryStmt()
430 public Optional<TryStmt> toTryStmt() { in toTryStmt()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/stmt/
DTryStmt.java36 public final class TryStmt extends Statement { class
46 public TryStmt() { in TryStmt() method in TryStmt
49 public TryStmt(final BlockStmt tryBlock, final List<CatchClause> catchs, in TryStmt() method in TryStmt
56 public TryStmt(Range range, List<VariableDeclarationExpr> resources, in TryStmt() method in TryStmt
93 public TryStmt setCatchs(final List<CatchClause> catchs) { in setCatchs()
99 public TryStmt setFinallyBlock(final BlockStmt finallyBlock) { in setFinallyBlock()
105 public TryStmt setTryBlock(final BlockStmt tryBlock) { in setTryBlock()
111 public TryStmt setResources(List<VariableDeclarationExpr> resources) { in setResources()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/
DTryStmtTest.java20 TryStmt tryStmt = parse9("try(Reader x = new FileReader()){}"); in simpleTest()
26 TryStmt tryStmt = parse9("try(Reader x = new FileReader(); Reader x = new FileReader()){}"); in multipleTest()
33 TryStmt tryStmt = parse9("try(final @A Reader x = new FileReader()){}"); in modifiersTest()
40 TryStmt tryStmt = parse9("try(a){}"); in simpleVariable()
47 TryStmt tryStmt = parse9("try(a;b){}"); in twoSimpleVariables()
55 TryStmt tryStmt = parse9("try(a.b.c){}"); in complexVariable()
62 TryStmt tryStmt = parse9("try(super.a){}"); in superAccess()
69 TryStmt tryStmt = parse9("try(X.this.a){}"); in outerClassAccess()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/expected_output/
Dcom_github_javaparser_ast_stmt_TryStmt.txt1 …Line 51) setTryBlock(tryBlock) ==> com.github.javaparser.ast.stmt.TryStmt.setTryBlock(com.github.j…
2 …Line 52) setCatchs(catchs) ==> com.github.javaparser.ast.stmt.TryStmt.setCatchs(java.util.List<com…
3 …Line 53) setFinallyBlock(finallyBlock) ==> com.github.javaparser.ast.stmt.TryStmt.setFinallyBlock(…
4 …Line 59) setResources(resources) ==> com.github.javaparser.ast.stmt.TryStmt.setResources(java.util…
5 …Line 60) setTryBlock(tryBlock) ==> com.github.javaparser.ast.stmt.TryStmt.setTryBlock(com.github.j…
6 …Line 61) setCatchs(catchs) ==> com.github.javaparser.ast.stmt.TryStmt.setCatchs(java.util.List<com…
7 …Line 62) setFinallyBlock(finallyBlock) ==> com.github.javaparser.ast.stmt.TryStmt.setFinallyBlock(…
8 …> com.github.javaparser.ast.visitor.GenericVisitor.visit(com.github.javaparser.ast.stmt.TryStmt, A)
9 … ==> com.github.javaparser.ast.visitor.VoidVisitor.visit(com.github.javaparser.ast.stmt.TryStmt, A)
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/
DFindNodeTest.java5 import com.github.javaparser.ast.stmt.TryStmt;
69 if (bs.getParentNode().isPresent() && bs.getParentNode().get() instanceof TryStmt) { in testFindAncestralFinallyBlock()
70 TryStmt ancestralTryStmt = (TryStmt) bs.getParentNode().get(); in testFindAncestralFinallyBlock()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/stmt/
DTryStmt.java33 public final class TryStmt extends Statement { class
43 public TryStmt() { in TryStmt() method in TryStmt
46 public TryStmt(final BlockStmt tryBlock, final List<CatchClause> catchs, in TryStmt() method in TryStmt
53 public TryStmt(final int beginLine, final int beginColumn, in TryStmt() method in TryStmt
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/validator/
DJava9Validator.java3 import com.github.javaparser.ast.stmt.TryStmt;
13 …final SingleNodeTypeValidator<TryStmt> tryWithResources = new SingleNodeTypeValidator<>(TryStmt.cl…
DJava7Validator.java5 import com.github.javaparser.ast.stmt.TryStmt;
12 …final SingleNodeTypeValidator<TryStmt> tryWithLimitedResources = new SingleNodeTypeValidator<>(Try…
DJava1_0Validator.java50 …final SingleNodeTypeValidator<TryStmt> tryWithoutResources = new SingleNodeTypeValidator<>(TryStmt
/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/
DTryWithResourceContext.java22 import com.github.javaparser.ast.stmt.TryStmt;
37 public class TryWithResourceContext extends AbstractJavaParserContext<TryStmt> {
39 public TryWithResourceContext(TryStmt wrappedNode, TypeSolver typeSolver) { in TryWithResourceContext()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/
DControlFlowLogic.java60 for (TryStmt tryStmt : containedTryStmts(breakTarget)) { in exitTheStatement()
71 for (TryStmt tryStmt : containedTryStmts(continueStmt)) { in continueADoStatement()
85 private List<TryStmt> containedTryStmts(Statement statement) { in containedTryStmts()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DTryWithResourceContext.java25 import com.github.javaparser.ast.stmt.TryStmt;
42 public class TryWithResourceContext extends AbstractJavaParserContext<TryStmt> {
44 public TryWithResourceContext(TryStmt wrappedNode, TypeSolver typeSolver) { in TryWithResourceContext()
/external/llvm-project/clang/lib/CodeGen/
DCGCoroutine.cpp231 CXXTryStmt *TryStmt = nullptr; in emitSuspendExpression() local
243 TryStmt = CXXTryStmt::Create(CGF.getContext(), Loc, TryBody, Catch); in emitSuspendExpression()
244 CGF.EnterCXXTryStmt(*TryStmt); in emitSuspendExpression()
253 if (TryStmt) { in emitSuspendExpression()
255 CGF.ExitCXXTryStmt(*TryStmt); in emitSuspendExpression()
658 auto *TryStmt = in EmitCoroutineBody() local
661 EnterCXXTryStmt(*TryStmt); in EmitCoroutineBody()
662 emitBodyAndFallthrough(*this, S, TryStmt->getTryBlock()); in EmitCoroutineBody()
663 ExitCXXTryStmt(*TryStmt); in EmitCoroutineBody()
/external/javaparser/javaparser-core-testing-bdd/src/test/resources/com/github/javaparser/
Dmanipulation_scenarios.story22 Scenario: Adding declarations to a TryStmt it is set as the parent of all provided declarations
24 Given a TryStmt
26 When the List of VariableDeclarations are set as the resources on TryStmt
27 Then all the VariableDeclarations parent is the TryStmt
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/metamodel/
DTryStmtMetaModel.java8 …super(superBaseNodeMetaModel, com.github.javaparser.ast.stmt.TryStmt.class, "TryStmt", "com.github… in TryStmtMetaModel()
/external/javaparser/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/
DManipulationSteps.java35 import com.github.javaparser.ast.stmt.TryStmt;
61 private TryStmt tryStmt;
85 tryStmt = new TryStmt(); in givenATryStmt()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/javaparsermodel/
DJavaParserFactory.java72 } else if (node instanceof TryStmt) { in getContext()
73 return new TryWithResourceContext((TryStmt) node, typeSolver); in getContext()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/
DJavaParserFactory.java70 } else if (node instanceof TryStmt) { in getContext()
71 return new TryWithResourceContext((TryStmt) node, typeSolver); in getContext()
/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_TryWithResourceContext.txt1 Line 45) wrappedNode.getResources() ==> com.github.javaparser.ast.stmt.TryStmt.getResources()
13 Line 63) wrappedNode.getResources() ==> com.github.javaparser.ast.stmt.TryStmt.getResources()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/naming/
DNameLogic.java11 import com.github.javaparser.ast.stmt.TryStmt;
251 if (whenParentIs(TryStmt.class, name, (p, c) -> p.getResources().contains(c))) { in classifyRole()
917 nameExpr.getName() == c && whenParentIs(TryStmt.class, nameExpr, (ne, c2) -> in isSyntacticallyAnExpressionName()
925 … p3.getVariables().contains(c3) && whenParentIs(TryStmt.class, p3, (p4, c4) -> in isSyntacticallyAnExpressionName()
932 if (whenParentIs(TryStmt.class, name, (ne, c2) -> in isSyntacticallyAnExpressionName()
938 … p3.getVariables().contains(c3) && whenParentIs(TryStmt.class, p3, (p4, c4) -> in isSyntacticallyAnExpressionName()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/
DLexicalPreservingPrinterTest.java27 import com.github.javaparser.ast.stmt.TryStmt;
490 TryStmt tryStmt = (TryStmt) initializerDeclaration.getBody().getStatements().get(0); in printASingleCatchType()
502 TryStmt tryStmt = (TryStmt) initializerDeclaration.getBody().getStatements().get(0); in printUnionType()
514 TryStmt tryStmt = (TryStmt) initializerDeclaration.getBody().getStatements().get(0); in printParameterHavingUnionType()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/expected_output/
Dcom_github_javaparser_ast_stmt_TryStmt.txt2 [ Class com.github.javaparser.ast.stmt.TryStmt ]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/visitor/
DVoidVisitor.java65 import com.github.javaparser.ast.stmt.TryStmt;
245 void visit(TryStmt n, A arg); in visit()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/visitor/
DVoidVisitor.java62 import com.github.javaparser.ast.stmt.TryStmt;
246 void visit(TryStmt n, A arg); in visit()

1234