Home
last modified time | relevance | path

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

12345

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/
DSwitchStmt.java50 public final class SwitchStmt extends Statement { class
56 public SwitchStmt() { in SwitchStmt() method in SwitchStmt
61 public SwitchStmt(final Expression selector, final NodeList<SwitchEntryStmt> entries) { in SwitchStmt() method in SwitchStmt
69 … public SwitchStmt(TokenRange tokenRange, Expression selector, NodeList<SwitchEntryStmt> entries) { in SwitchStmt() method in SwitchStmt
103 public SwitchStmt setEntries(final NodeList<SwitchEntryStmt> entries) { in setEntries()
106 return (SwitchStmt) this; in setEntries()
120 public SwitchStmt setEntry(int i, SwitchEntryStmt entry) { in setEntry()
129 public SwitchStmt addEntry(SwitchEntryStmt entry) { in addEntry()
135 public SwitchStmt setSelector(final Expression selector) { in setSelector()
138 return (SwitchStmt) this; in setSelector()
[all …]
DStatement.java239 public SwitchStmt asSwitchStmt() { in asSwitchStmt()
354 public void ifSwitchStmt(Consumer<SwitchStmt> action) { in ifSwitchStmt()
453 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/resources/javaparser_methodcalls_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-core/src/main/java/com/github/javaparser/symbolsolver/javaparser/
DNavigator.java26 import com.github.javaparser.ast.stmt.SwitchStmt;
162 public static SwitchStmt findSwitch(Node node) { in findSwitch()
206 private static Optional<SwitchStmt> findSwitchHelper(Node node) { in findSwitchHelper()
208 if (node instanceof SwitchStmt) { in findSwitchHelper()
209 return Optional.of((SwitchStmt) node); in findSwitchHelper()
212 Optional<SwitchStmt> resChild = findSwitchHelper(child); in findSwitchHelper()
/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/java/com/github/javaparser/symbolsolver/resolution/
DEnumResolutionTest.java24 import com.github.javaparser.ast.stmt.SwitchStmt;
43 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/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/resources/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/javaparser/javaparser-symbol-solver-testing/src/test/resources/javaparser_expected_output/
Dcom_github_javaparser_ast_stmt_SwitchStmt.txt2 [ Class com.github.javaparser.ast.stmt.SwitchStmt ]
/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()
DGenericVisitor.java59 import com.github.javaparser.ast.stmt.SwitchStmt;
222 R visit(SwitchStmt n, A arg); in visit()
DEqualsVisitor.java95 import com.github.javaparser.ast.stmt.SwitchStmt;
1262 @Override public Boolean visit(final SwitchStmt n1, final Node arg) { in visit()
1263 final SwitchStmt n2 = (SwitchStmt) arg; in visit()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/visitor/
DVoidVisitor.java62 import com.github.javaparser.ast.stmt.SwitchStmt;
221 void visit(SwitchStmt n, A arg); in visit()
DGenericVisitor.java62 import com.github.javaparser.ast.stmt.SwitchStmt;
221 public R visit(SwitchStmt n, A arg); in visit()
/external/clang/include/clang/Sema/
DScopeInfo.h42 class SwitchStmt; variable
148 SmallVector<SwitchStmt*, 8> SwitchStack;
/external/clang/lib/AST/
DStmt.cpp828 SwitchStmt::SwitchStmt(const ASTContext &C, Stmt *init, VarDecl *Var, in SwitchStmt() function in SwitchStmt
837 VarDecl *SwitchStmt::getConditionVariable() const { in getConditionVariable()
845 void SwitchStmt::setConditionVariable(const ASTContext &C, VarDecl *V) { in setConditionVariable()
DParentMap.cpp195 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DCoreEngine.h528 const SwitchStmt *getSwitch() const { in getSwitch()
529 return cast<SwitchStmt>(Src->getTerminator()); in getSwitch()
/external/clang/lib/CodeGen/
DCodeGenPGO.cpp86 SwitchStmt, enumerator
174 return PGOHash::SwitchStmt; in getHashType()
459 void VisitSwitchStmt(const SwitchStmt *S) { in VisitSwitchStmt()
/external/clang/lib/ARCMigrate/
DTransProtectedScope.cpp63 bool VisitSwitchStmt(SwitchStmt *S) { in VisitSwitchStmt()

12345