Home
last modified time | relevance | path

Searched refs:switchStmt (Results 1 – 21 of 21) sorted by relevance

/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/
DSwitchStmtTest.java14 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/
DSwitchEntryContext.java47 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/
DSwitchEntryContext.java47 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/
Dcom_github_javaparser_symbolsolver_javaparsermodel_contexts_SwitchEntryContext.txt2 …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/
DEnumResolutionTest.java48 SwitchStmt switchStmt = Navigator.findSwitch(method); in switchOnEnum() local
49 Expression expression = switchStmt.getEntries().get(0).getLabels().get(0); in switchOnEnum()
/external/clang/unittests/ASTMatchers/
DASTMatchersTraversalTest.cpp978 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()
DASTMatchersNodeTest.cpp1059 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/
DMultiwayPathsCoveredCheck.cpp27 switchStmt( in registerMatchers()
/external/skia/src/sksl/
DSkSLInliner.cpp890 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/
DBranchCloneCheck.cpp68 Finder->addMatcher(switchStmt().bind("switch"), this); in registerMatchers()
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersTraversalTest.cpp1577 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()
DASTMatchersNodeTest.cpp1466 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()
DASTMatchersNarrowingTest.cpp1363 switchStmt(hasInitStatement(anything())))); in TEST_P()
1384 switchStmt(hasInitStatement(anything())))); in TEST_P()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DLoopUnrolling.cpp129 anyOf(gotoStmt(), switchStmt(), returnStmt(), in hasSuspiciousStmt()
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/
DUninitializedObjectChecker.cpp553 stmt(anyOf(ifStmt(), switchStmt(), conditionalOperator(), AssertLikeM, in hasUnguardedAccess()
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp392 REGISTER_MATCHER(switchStmt); in RegistryMaps()
/external/llvm-project/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp515 REGISTER_MATCHER(switchStmt); in RegistryMaps()
/external/llvm-project/clang/lib/ASTMatchers/
DASTMatchersInternal.cpp880 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt; variable
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h1555 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt; variable
/external/llvm-project/clang/include/clang/ASTMatchers/
DASTMatchers.h2189 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchStmt> switchStmt;
/external/llvm-project/clang/unittests/AST/
DASTImporterTest.cpp392 switchStmt(has(compoundStmt(has(caseStmt()))))))); in TEST_P()