Searched refs:ifStmt (Results 1 – 9 of 9) sorted by relevance
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/ |
D | IfElseStmtTest.java | 13 … IfStmt ifStmt = parseStatement("if (cond) doSomething(); else doSomethingElse();").asIfStmt(); in issue1247withElseSingleStmt() local 14 assertFalse(ifStmt.hasElseBlock()); in issue1247withElseSingleStmt() 15 assertTrue(ifStmt.hasElseBranch()); in issue1247withElseSingleStmt() 16 assertFalse(ifStmt.hasCascadingIfStmt()); in issue1247withElseSingleStmt() 21 … IfStmt ifStmt = parseStatement("if (cond) doSomething(); else { doSomethingElse(); }").asIfStmt(); in issue1247withElseBlockStmt() local 22 assertTrue(ifStmt.hasElseBlock()); in issue1247withElseBlockStmt() 23 assertTrue(ifStmt.hasElseBranch()); in issue1247withElseBlockStmt() 24 assertFalse(ifStmt.hasCascadingIfStmt()); in issue1247withElseBlockStmt() 29 …IfStmt ifStmt = parseStatement("if (cond1) doSomething(); else if (cond2) doSomethingElse();").asI… in issue1247withElseSingleStmtWhichIsAnIf() local 30 assertFalse(ifStmt.hasElseBlock()); in issue1247withElseSingleStmtWhichIsAnIf() [all …]
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersTraversalTest.cpp | 717 ifStmt(hasThen(cxxBoolLiteral(equals(true)))))); in TEST() 719 ifStmt(hasThen(cxxBoolLiteral(equals(true)))))); in TEST() 721 ifStmt(hasElse(cxxBoolLiteral(equals(true)))))); in TEST() 723 ifStmt(hasElse(cxxBoolLiteral(equals(true)))))); in TEST() 963 ifStmt(hasCondition(cxxBoolLiteral(equals(true)))); in TEST() 1307 ifStmt(has(switchStmt(forEachSwitchCase(defaultStmt())))))); in TEST() 1332 ifStmt(hasConditionVariableStatement(declStmt())))); in TEST() 1335 ifStmt(hasConditionVariableStatement(declStmt())))); in TEST() 1341 ifStmt(hasConditionVariableStatement(declStmt())))); in TEST() 1409 compoundStmt(forEachDescendant(ifStmt().bind("if")), in TEST() [all …]
|
D | ASTMatchersNarrowingTest.cpp | 316 StatementMatcher MixedTypes = stmt(anyOf(ifStmt(), binaryOperator())); in TEST() 1825 stmt(allOf(ifStmt().bind("if"), in TEST() 1830 stmt(allOf(ifStmt().bind("if"), has(stmt(equalsBoundNode("if"))))))); in TEST()
|
D | ASTMatchersNodeTest.cpp | 775 ifStmt(hasCondition(cxxBoolLiteral(equals(true)))); in TEST() 1463 "void f() { if (true) if(true) {} }", ifStmt().bind(""), in TEST()
|
/external/clang/unittests/Tooling/ |
D | RefactoringCallbacksTest.cpp | 84 id("id", ifStmt( in TEST() 95 id("id", ifStmt(hasCondition(cxxBoolLiteral(equals(false))))), in TEST()
|
/external/clang/unittests/AST/ |
D | ASTContextParentMapTest.cpp | 34 ifStmt(hasParent(compoundStmt())))); in TEST()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ |
D | MethodsResolutionTest.java | 67 IfStmt ifStmt = (IfStmt) ((BlockStmt) innerFor.getBody()).getStatement(4); in testConsistentMethodResultion() local 68 …MethodCallExpr assertCall = (MethodCallExpr) ((ExpressionStmt) ((BlockStmt) ifStmt.getThenStmt()).… in testConsistentMethodResultion()
|
/external/clang/lib/ASTMatchers/Dynamic/ |
D | Registry.cpp | 269 REGISTER_MATCHER(ifStmt); in RegistryMaps()
|
/external/clang/include/clang/ASTMatchers/ |
D | ASTMatchers.h | 1384 const internal::VariadicDynCastAllOfMatcher<Stmt, IfStmt> ifStmt; variable
|