Home
last modified time | relevance | path

Searched refs:SwitchStmt (Results 1 – 25 of 165) sorted by relevance

1234567

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/
DSwitchStmt.java73 public class SwitchStmt extends Statement implements SwitchNode { class
79 public SwitchStmt() { in SwitchStmt() method in SwitchStmt
84 public SwitchStmt(final Expression selector, final NodeList<SwitchEntry> entries) { in SwitchStmt() method in SwitchStmt
92 public SwitchStmt(TokenRange tokenRange, Expression selector, NodeList<SwitchEntry> entries) { in SwitchStmt() method in SwitchStmt
126 public SwitchStmt setEntries(final NodeList<SwitchEntry> entries) { in setEntries()
129 return (SwitchStmt) this; in setEntries()
140 public SwitchStmt setSelector(final Expression selector) { in setSelector()
143 return (SwitchStmt) this; in setSelector()
169 public SwitchStmt clone() { in clone()
170 return (SwitchStmt) accept(new CloneVisitor(), null); in clone()
[all …]
DStatement.java219 public SwitchStmt asSwitchStmt() { in asSwitchStmt()
326 public void ifSwitchStmt(Consumer<SwitchStmt> action) { in ifSwitchStmt()
415 public Optional<SwitchStmt> toSwitchStmt() { in toSwitchStmt()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/stmt/
DSwitchStmt.java36 public final class SwitchStmt extends Statement { class
42 public SwitchStmt() { in SwitchStmt() method in SwitchStmt
45 public SwitchStmt(final Expression selector, in SwitchStmt() method in SwitchStmt
51 public SwitchStmt(Range range, final Expression selector, in SwitchStmt() method in SwitchStmt
77 public SwitchStmt setEntries(final List<SwitchEntryStmt> entries) { in setEntries()
83 public SwitchStmt setSelector(final Expression selector) { in setSelector()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/expected_output/
Dcom_github_javaparser_ast_stmt_SwitchStmt.txt1 …Line 47) setSelector(selector) ==> com.github.javaparser.ast.stmt.SwitchStmt.setSelector(com.githu…
2 …Line 48) setEntries(entries) ==> com.github.javaparser.ast.stmt.SwitchStmt.setEntries(java.util.Li…
3 …Line 54) setSelector(selector) ==> com.github.javaparser.ast.stmt.SwitchStmt.setSelector(com.githu…
4 …Line 55) setEntries(entries) ==> com.github.javaparser.ast.stmt.SwitchStmt.setEntries(java.util.Li…
5 …om.github.javaparser.ast.visitor.GenericVisitor.visit(com.github.javaparser.ast.stmt.SwitchStmt, A)
6 …> com.github.javaparser.ast.visitor.VoidVisitor.visit(com.github.javaparser.ast.stmt.SwitchStmt, A)
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/stmt/
DSwitchStmt.java33 public final class SwitchStmt extends Statement { class
39 public SwitchStmt() { in SwitchStmt() method in SwitchStmt
42 public SwitchStmt(final Expression selector, in SwitchStmt() method in SwitchStmt
48 public SwitchStmt(final int beginLine, final int beginColumn, in SwitchStmt() method in SwitchStmt
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/javaparser/
DNavigator.java26 import com.github.javaparser.ast.stmt.SwitchStmt;
208 public static SwitchStmt findSwitch(Node node) { in findSwitch()
209 SwitchStmt res = findSwitchHelper(node); in findSwitch()
261 private static SwitchStmt findSwitchHelper(Node node) { in findSwitchHelper()
262 if (node instanceof SwitchStmt) { in findSwitchHelper()
263 return (SwitchStmt) node; in findSwitchHelper()
266 SwitchStmt resChild = findSwitchHelper(child); in findSwitchHelper()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparser/
DNavigator.java26 import com.github.javaparser.ast.stmt.SwitchStmt;
200 public static SwitchStmt findSwitch(Node node) { in findSwitch()
228 private static Optional<SwitchStmt> findSwitchHelper(Node node) { in findSwitchHelper()
230 if (node instanceof SwitchStmt) { in findSwitchHelper()
231 return Optional.of((SwitchStmt) node); in findSwitchHelper()
234 Optional<SwitchStmt> resChild = findSwitchHelper(child); in findSwitchHelper()
/external/llvm-project/clang/lib/CodeGen/
DVarBypassDetector.cpp70 if (const Stmt *Init = cast<SwitchStmt>(S)->getInit()) { in BuildScopeInformation()
75 if (const VarDecl *Var = cast<SwitchStmt>(S)->getConditionVariable()) { in BuildScopeInformation()
143 } else if (const SwitchStmt *SS = dyn_cast<SwitchStmt>(St)) { in Detect()
/external/llvm-project/clang-tools-extra/clang-tidy/hicpp/
DMultiwayPathsCoveredCheck.cpp51 static std::pair<std::size_t, bool> countCaseLabels(const SwitchStmt *Switch) { in countCaseLabels()
99 const auto *Switch = Result.Nodes.getNodeAs<SwitchStmt>("switch"); in check()
129 const SwitchStmt *Switch, std::size_t CaseCount) { in handleSwitchWithDefault()
140 const SwitchStmt *Switch, std::size_t CaseCount, in handleSwitchWithoutDefault()
DMultiwayPathsCoveredCheck.h34 void handleSwitchWithDefault(const SwitchStmt *Switch, std::size_t CaseCount);
36 const SwitchStmt *Switch, std::size_t CaseCount,
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/other/
DTokenKindGenerator.java13 import com.github.javaparser.ast.stmt.SwitchStmt;
40 …final SwitchStmt valueOfSwitch = kindEnum.findFirst(SwitchStmt.class).orElseThrow(() -> new Assert… in generate()
61 …private void generateValueOfEntry(SwitchStmt valueOfSwitch, String name, IntegerLiteralExpr kind) { in generateValueOfEntry()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DSwitchEntryContext.java21 import com.github.javaparser.ast.stmt.SwitchStmt;
47 SwitchStmt switchStmt = (SwitchStmt) requireParentNode(wrappedNode); 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.java21 import com.github.javaparser.ast.stmt.SwitchStmt;
47 SwitchStmt switchStmt = (SwitchStmt) getParentNode(wrappedNode); in solveSymbol()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/
DSwitchStmtTest.java14 SwitchStmt switchStmt = parseStatement("switch (day) {\n" + in classicSwitch()
27 SwitchStmt switchStmt = parseStatement("switch (day) {\n" + in jep325Example1()
/external/llvm-project/clang/lib/AST/
DStmt.cpp1030 SwitchStmt::SwitchStmt(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in SwitchStmt() function in SwitchStmt
1051 SwitchStmt::SwitchStmt(EmptyShell Empty, bool HasInit, bool HasVar) in SwitchStmt() function in SwitchStmt
1058 SwitchStmt *SwitchStmt::Create(const ASTContext &Ctx, Stmt *Init, VarDecl *Var, in Create()
1065 alignof(SwitchStmt)); in Create()
1066 return new (Mem) SwitchStmt(Ctx, Init, Var, Cond, LParenLoc, RParenLoc); in Create()
1069 SwitchStmt *SwitchStmt::CreateEmpty(const ASTContext &Ctx, bool HasInit, in CreateEmpty()
1073 alignof(SwitchStmt)); in CreateEmpty()
1074 return new (Mem) SwitchStmt(EmptyShell(), HasInit, HasVar); in CreateEmpty()
1077 VarDecl *SwitchStmt::getConditionVariable() { in getConditionVariable()
1084 void SwitchStmt::setConditionVariable(const ASTContext &Ctx, VarDecl *V) { in setConditionVariable()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DEnumResolutionTest.java28 import com.github.javaparser.ast.stmt.SwitchStmt;
48 SwitchStmt switchStmt = Navigator.findSwitch(method); in switchOnEnum()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/
DControlFlowLogic.java106 if (n.isEmpty() && !parentIs(statement, SwitchStmt.class)) { in canCompleteNormally()
111 if (!n.isEmpty() && !parentIs(statement, SwitchStmt.class)) { in canCompleteNormally()
/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DPopulateSwitch.cpp75 const SwitchStmt *Switch = nullptr;
109 Switch = dyn_cast<SwitchStmt>(CAStmt); in REGISTER_TWEAK()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/metamodel/
DSwitchStmtMetaModel.java8 …super(superBaseNodeMetaModel, com.github.javaparser.ast.stmt.SwitchStmt.class, "SwitchStmt", "com.… in SwitchStmtMetaModel()
/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.txt4 Line 48) switchStmt.getSelector() ==> com.github.javaparser.ast.stmt.SwitchStmt.getSelector()
14 Line 61) switchStmt.getEntries() ==> com.github.javaparser.ast.stmt.SwitchStmt.getEntries()
/external/llvm-project/clang/test/CodeGenCXX/
Dattr-likelihood-if-branch-weights.cpp128 void SwitchStmt() { in SwitchStmt() function
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/expected_output/
Dcom_github_javaparser_ast_stmt_SwitchStmt.txt2 [ Class com.github.javaparser.ast.stmt.SwitchStmt ]
/external/llvm-project/clang/lib/Tooling/Refactoring/Extract/
DSourceExtraction.cpp43 if(const auto *Switch = dyn_cast<SwitchStmt>(S)) in isSemicolonRequiredAfter()
/external/clang/lib/Sema/
DJumpDiagnostics.cpp309 if (Stmt *Init = cast<SwitchStmt>(S)->getInit()) { in BuildScopeInformation()
313 if (VarDecl *Var = cast<SwitchStmt>(S)->getConditionVariable()) { in BuildScopeInformation()
603 SwitchStmt *SS = cast<SwitchStmt>(Jump); in VerifyJumps()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/visitor/
DVoidVisitor.java59 import com.github.javaparser.ast.stmt.SwitchStmt;
222 void visit(SwitchStmt n, A arg); in visit()

1234567