/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/ |
D | SwitchStmtTest.java | 14 SwitchStmt switchStmt = parseStatement("switch (day) {\n" + in classicSwitch() local 20 assertEquals(STATEMENT_GROUP, switchStmt.getEntry(0).getType()); in classicSwitch() 21 assertEquals(STATEMENT_GROUP, switchStmt.getEntry(1).getType()); in classicSwitch() 22 assertEquals(STATEMENT_GROUP, switchStmt.getEntry(2).getType()); in classicSwitch() 23 assertEquals(new NodeList<>(), switchStmt.getEntry(2).getLabels()); in classicSwitch() 27 SwitchStmt switchStmt = parseStatement("switch (day) {\n" + in jep325Example1() local 34 assertEquals(EXPRESSION, switchStmt.getEntry(0).getType()); in jep325Example1()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/ |
D | SwitchEntryContext.java | 47 SwitchStmt switchStmt = (SwitchStmt) requireParentNode(wrappedNode); in solveSymbol() local 48 ResolvedType type = JavaParserFacade.get(typeSolver).getType(switchStmt.getSelector()); in solveSymbol() 64 for (SwitchEntry seStmt : switchStmt.getEntries()) { in solveSymbol()
|
/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/ |
D | SwitchEntryContext.java | 47 SwitchStmt switchStmt = (SwitchStmt) getParentNode(wrappedNode); in solveSymbol() local 48 Type type = JavaParserFacade.get(typeSolver).getType(switchStmt.getSelector()); in solveSymbol() 61 for (SwitchEntryStmt seStmt : switchStmt.getEntries()) { in solveSymbol()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/ |
D | com_github_javaparser_symbolsolver_javaparsermodel_contexts_SwitchEntryContext.txt | 2 …Line 48) JavaParserFacade.get(typeSolver).getType(switchStmt.getSelector()) ==> com.github.javapar… 4 Line 48) switchStmt.getSelector() ==> com.github.javaparser.ast.stmt.SwitchStmt.getSelector() 14 Line 61) switchStmt.getEntries() ==> com.github.javaparser.ast.stmt.SwitchStmt.getEntries()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ |
D | EnumResolutionTest.java | 48 SwitchStmt switchStmt = Navigator.findSwitch(method); in switchOnEnum() local 49 Expression expression = switchStmt.getEntries().get(0).getLabels().get(0); in switchOnEnum()
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersTraversalTest.cpp | 978 switchStmt(hasCondition(integerLiteral(equals(42)))); in TEST() 1300 switchStmt(forEachSwitchCase(caseStmt())))); in TEST() 1302 switchStmt(forEachSwitchCase(caseStmt())))); in TEST() 1304 switchStmt(forEachSwitchCase(caseStmt())))); in TEST() 1307 ifStmt(has(switchStmt(forEachSwitchCase(defaultStmt())))))); in TEST() 1309 switchStmt(forEachSwitchCase( in TEST() 1312 switchStmt(forEachSwitchCase( in TEST() 1315 switchStmt(forEachSwitchCase( in TEST() 1319 switchStmt(forEachSwitchCase(caseStmt().bind("x"))), in TEST()
|
D | ASTMatchersNodeTest.cpp | 1059 EXPECT_TRUE(matches("void x() { switch(42) { case 42:; } }", switchStmt())); in TEST() 1060 EXPECT_TRUE(matches("void x() { switch(42) { default:; } }", switchStmt())); in TEST() 1061 EXPECT_TRUE(matches("void x() { switch(42) default:; }", switchStmt())); in TEST() 1062 EXPECT_TRUE(notMatches("void x() {}", switchStmt())); in TEST()
|
/external/llvm-project/clang-tools-extra/clang-tidy/hicpp/ |
D | MultiwayPathsCoveredCheck.cpp | 27 switchStmt( in registerMatchers()
|
/external/skia/src/sksl/ |
D | SkSLInliner.cpp | 890 SwitchStatement& switchStmt = (*stmt)->as<SwitchStatement>(); in visitStatement() local 891 if (switchStmt.symbols()) { in visitStatement() 892 fSymbolTableStack.push_back(switchStmt.symbols()); in visitStatement() 895 this->visitExpression(&switchStmt.value()); in visitStatement() 896 for (const std::unique_ptr<Statement>& switchCase : switchStmt.cases()) { in visitStatement()
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | BranchCloneCheck.cpp | 68 Finder->addMatcher(switchStmt().bind("switch"), this); in registerMatchers()
|
/external/llvm-project/clang/unittests/ASTMatchers/ |
D | ASTMatchersTraversalTest.cpp | 1577 switchStmt(hasCondition(integerLiteral(equals(42)))); in TEST() 3241 switchStmt(forEachSwitchCase(caseStmt())))); in TEST() 3243 switchStmt(forEachSwitchCase(caseStmt())))); in TEST() 3245 switchStmt(forEachSwitchCase(caseStmt())))); in TEST() 3248 ifStmt(has(switchStmt(forEachSwitchCase(defaultStmt())))))); in TEST() 3252 switchStmt(forEachSwitchCase(caseStmt(hasCaseConstant( in TEST() 3257 switchStmt(forEachSwitchCase(caseStmt(hasCaseConstant( in TEST() 3262 switchStmt(forEachSwitchCase(caseStmt(hasCaseConstant( in TEST() 3266 switchStmt(forEachSwitchCase(caseStmt().bind("x"))), in TEST()
|
D | ASTMatchersNodeTest.cpp | 1466 EXPECT_TRUE(matches("void x() { switch(42) { case 42:; } }", switchStmt())); in TEST_P() 1467 EXPECT_TRUE(matches("void x() { switch(42) { default:; } }", switchStmt())); in TEST_P() 1468 EXPECT_TRUE(matches("void x() { switch(42) default:; }", switchStmt())); in TEST_P() 1469 EXPECT_TRUE(notMatches("void x() {}", switchStmt())); in TEST_P()
|
D | ASTMatchersNarrowingTest.cpp | 1363 switchStmt(hasInitStatement(anything())))); in TEST_P() 1384 switchStmt(hasInitStatement(anything())))); in TEST_P()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | LoopUnrolling.cpp | 129 anyOf(gotoStmt(), switchStmt(), returnStmt(), in hasSuspiciousStmt()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/ |
D | UninitializedObjectChecker.cpp | 553 stmt(anyOf(ifStmt(), switchStmt(), conditionalOperator(), AssertLikeM, in hasUnguardedAccess()
|
/external/clang/lib/ASTMatchers/Dynamic/ |
D | Registry.cpp | 392 REGISTER_MATCHER(switchStmt); in RegistryMaps()
|
/external/llvm-project/clang/lib/ASTMatchers/Dynamic/ |
D | Registry.cpp | 515 REGISTER_MATCHER(switchStmt); in RegistryMaps()
|
/external/llvm-project/clang/lib/ASTMatchers/ |
D | ASTMatchersInternal.cpp | 880 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt; variable
|
/external/clang/include/clang/ASTMatchers/ |
D | ASTMatchers.h | 1555 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt; variable
|
/external/llvm-project/clang/include/clang/ASTMatchers/ |
D | ASTMatchers.h | 2189 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt;
|
/external/llvm-project/clang/unittests/AST/ |
D | ASTImporterTest.cpp | 392 switchStmt(has(compoundStmt(has(caseStmt()))))))); in TEST_P()
|