Home
last modified time | relevance | path

Searched refs:switchCase (Results 1 – 16 of 16) sorted by relevance

/external/dagger2/java/dagger/internal/codegen/writing/
DSwitchingProviders.java116 protected final Expression getProviderExpression(SwitchCase switchCase) { in getProviderExpression() argument
118 .computeIfAbsent(switchCase.key(), key -> getSwitchingProviderBuilder()) in getProviderExpression()
119 .getProviderExpression(switchCase); in getProviderExpression()
145 Expression getProviderExpression(SwitchCase switchCase) { in getProviderExpression() argument
146 Key key = switchCase.key(); in getProviderExpression()
150 switchCases.put(switchId, createSwitchCaseCodeBlock(switchCase)); in getProviderExpression()
152 return switchCase.getProviderExpression(switchingProviderType, switchIds.get(key)); in getProviderExpression()
155 private CodeBlock createSwitchCaseCodeBlock(SwitchCase switchCase) { in createSwitchCaseCodeBlock() argument
157 switchCase.getReturnExpression(switchingProviderType).box(types).codeBlock(); in createSwitchCaseCodeBlock()
161 .add("case $L: // $L \n", switchIds.get(switchCase.key()), switchCase.key()) in createSwitchCaseCodeBlock()
/external/proguard/src/proguard/optimize/evaluation/
DEvaluationSimplifier.java918 int switchCase = in replaceSimpleEnumSwitchInstruction() local
924 switchCase >= tableSwitchInstruction.lowCase && in replaceSimpleEnumSwitchInstruction()
925 switchCase <= tableSwitchInstruction.highCase ? in replaceSimpleEnumSwitchInstruction()
926 jumpOffsets[switchCase - tableSwitchInstruction.lowCase] : in replaceSimpleEnumSwitchInstruction()
1006 int switchCase = in replaceSimpleEnumSwitchInstruction() local
1010 int caseIndex = Arrays.binarySearch(cases, switchCase); in replaceSimpleEnumSwitchInstruction()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DUnusedReturnValueCheck.cpp160 auto UnusedInCaseStmt = switchCase(forEach(MatchedCallExpr)); in registerMatchers()
/external/skqp/src/sksl/
DSkSLParser.h220 std::unique_ptr<ASTSwitchCase> switchCase();
DSkSLParser.cpp1243 std::unique_ptr<ASTSwitchCase> Parser::switchCase() { in switchCase() function in SkSL::Parser
1290 std::unique_ptr<ASTSwitchCase> c = this->switchCase(); in switchStatement()
/external/skia/src/sksl/
DSkSLParser.h212 ASTNode::ID switchCase();
DSkSLInliner.cpp896 for (const std::unique_ptr<Statement>& switchCase : switchStmt.cases()) { in visitStatement() local
898 this->visitStatement(&switchCase->as<SwitchCase>().statement()); in visitStatement()
DSkSLParser.cpp1276 ASTNode::ID Parser::switchCase() { in switchCase() function in SkSL::Parser
1325 ASTNode::ID c = this->switchCase(); in switchStatement()
/external/clang/unittests/ASTMatchers/
DASTMatchersNodeTest.cpp1052 EXPECT_TRUE(matches("void x() { switch(42) { case 42:; } }", switchCase())); in TEST()
1053 EXPECT_TRUE(matches("void x() { switch(42) { default:; } }", switchCase())); in TEST()
1054 EXPECT_TRUE(matches("void x() { switch(42) default:; }", switchCase())); in TEST()
1055 EXPECT_TRUE(notMatches("void x() { switch(42) {} }", switchCase())); in TEST()
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersNodeTest.cpp1459 EXPECT_TRUE(matches("void x() { switch(42) { case 42:; } }", switchCase())); in TEST_P()
1460 EXPECT_TRUE(matches("void x() { switch(42) { default:; } }", switchCase())); in TEST_P()
1461 EXPECT_TRUE(matches("void x() { switch(42) default:; }", switchCase())); in TEST_P()
1462 EXPECT_TRUE(notMatches("void x() { switch(42) {} }", switchCase())); in TEST_P()
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp391 REGISTER_MATCHER(switchCase); in RegistryMaps()
/external/llvm-project/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp514 REGISTER_MATCHER(switchCase); in RegistryMaps()
/external/llvm-project/clang/lib/ASTMatchers/
DASTMatchersInternal.cpp881 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchCase> switchCase; variable
/external/google-java-format/core/src/test/java/com/google/googlejavaformat/java/
DPartialFormattingTest.java1193 public void switchCase() throws Exception { in switchCase() method in PartialFormattingTest
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h1565 const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchCase> switchCase; variable
/external/llvm-project/clang/include/clang/ASTMatchers/
DASTMatchers.h2199 extern const internal::VariadicDynCastAllOfMatcher<Stmt, SwitchCase> switchCase;