Home
last modified time | relevance | path

Searched refs:SwitchCase (Results 1 – 25 of 1072) sorted by relevance

12345678910>>...43

/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Linq.Expressions/tests/Switch/
H A DSwitchTests.cs634SwitchCase switchCase = Expression.SwitchCase(Expression.Constant(1), Expression.Constant(2));
769 SwitchCase sc = Expression.SwitchCase(Expression.Constant(1), tests); in SwitchCaseUpdateSameToSame()
777 SwitchCase sc = Expression.SwitchCase(Expression.Constant(0), Expression.Constant(1)); in SwitchCaseUpdateNullTestsToSame()
785SwitchCase sc = Expression.SwitchCase(Expression.Constant(1), Expression.Constant(0), Expression.C… in SwitchCaseDifferentBodyToDifferent()
806 SwitchCase[] cases = in SwitchUpdateSameToSame()
856 SwitchCase[] newCases = new[] in SwitchUpdateDifferentCasesToDifferent()
877 new SwitchCase[] in SwitchUpdateDoesntRepeatEnumeration()
889 SwitchCase sc = Expression.SwitchCase(Expression.Constant(1), Expression.Constant(0)); in SingleTestCaseToString()
961SwitchCase e2 = Expression.SwitchCase(Expression.Parameter(typeof(int), "x"), Expression.Constant(… in ToStringTest()
981 Expression.SwitchCase( in JumpBetweenCases()
[all …]
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.Linq.Expressions/src/System/Linq/Expressions/
H A DSwitchCase.cs16 public sealed class SwitchCase class
18 internal SwitchCase(Expression body, ReadOnlyCollection<Expression> testValues) in SwitchCase() method in System.Linq.Expressions.SwitchCase
51 public SwitchCase Update(IEnumerable<Expression> testValues, Expression body) in Update()
61 return Expression.SwitchCase(body, testValues); in Update()
73 public static SwitchCase SwitchCase(Expression body, params Expression[] testValues) in SwitchCase() method in System.Linq.Expressions.Expression
75 return SwitchCase(body, (IEnumerable<Expression>)testValues); in SwitchCase()
84 public static SwitchCase SwitchCase(Expression body, IEnumerable<Expression> testValues) in SwitchCase() method in System.Linq.Expressions.Expression
92 return new SwitchCase(body, values); in SwitchCase()
H A DSwitchExpression.cs49 public ReadOnlyCollection<SwitchCase> Cases { get; }
91 …public SwitchExpression Update(Expression switchValue, IEnumerable<SwitchCase> cases, Expression d… in Update()
112 public static SwitchExpression Switch(Expression switchValue, params SwitchCase[] cases) in Switch()
114 return Switch(switchValue, null, null, (IEnumerable<SwitchCase>)cases); in Switch()
124 … SwitchExpression Switch(Expression switchValue, Expression defaultBody, params SwitchCase[] cases) in Switch()
126 return Switch(switchValue, defaultBody, null, (IEnumerable<SwitchCase>)cases); in Switch()
139 return Switch(switchValue, defaultBody, comparison, (IEnumerable<SwitchCase>)cases); in Switch()
153 … return Switch(type, switchValue, defaultBody, comparison, (IEnumerable<SwitchCase>)cases); in Switch()
183 ReadOnlyCollection<SwitchCase> caseList = cases.ToReadOnly(); in Switch()
220 foreach (SwitchCase c in caseList) in Switch()
[all …]
/dports/lang/mono/mono-5.10.1.57/mcs/class/referencesource/System.Core/Microsoft/Scripting/Ast/
H A DSwitchCase.cs33 public sealed class SwitchCase { class
37 internal SwitchCase(Expression body, ReadOnlyCollection<Expression> testValues) { in SwitchCase() method in Microsoft.Scripting.Ast.SwitchCase
72 public SwitchCase Update(IEnumerable<Expression> testValues, Expression body) { in Update()
76 return Expression.SwitchCase(body, testValues); in Update()
87 public static SwitchCase SwitchCase(Expression body, params Expression[] testValues) { in SwitchCase() method in Microsoft.Scripting.Ast.Expression
88 return SwitchCase(body, (IEnumerable<Expression>)testValues); in SwitchCase()
97 public static SwitchCase SwitchCase(Expression body, IEnumerable<Expression> testValues) { in SwitchCase() method in Microsoft.Scripting.Ast.Expression
104 return new SwitchCase(body, values); in SwitchCase()
H A DSwitchExpression.cs41 private readonly ReadOnlyCollection<SwitchCase> _cases;
45 …switchValue, Expression defaultBody, MethodInfo comparison, ReadOnlyCollection<SwitchCase> cases) { in SwitchExpression()
80 public ReadOnlyCollection<SwitchCase> Cases {
124 …public SwitchExpression Update(Expression switchValue, IEnumerable<SwitchCase> cases, Expression d… in Update()
139 public static SwitchExpression Switch(Expression switchValue, params SwitchCase[] cases) { in Switch()
140 return Switch(switchValue, null, null, (IEnumerable<SwitchCase>)cases); in Switch()
150 …witchExpression Switch(Expression switchValue, Expression defaultBody, params SwitchCase[] cases) { in Switch()
151 return Switch(switchValue, defaultBody, null, (IEnumerable<SwitchCase>)cases); in Switch()
162 …Expression switchValue, Expression defaultBody, MethodInfo comparison, params SwitchCase[] cases) { in Switch()
163 return Switch(switchValue, defaultBody, comparison, (IEnumerable<SwitchCase>)cases); in Switch()
[all …]
/dports/lang/rhino/rhino1_7R4/src/org/mozilla/javascript/ast/
H A DSwitchStatement.java34 private static final List<SwitchCase> NO_CASES =
35 Collections.unmodifiableList(new ArrayList<SwitchCase>());
38 private List<SwitchCase> cases;
81 public List<SwitchCase> getCases() { in getCases()
90 public void setCases(List<SwitchCase> cases) { in setCases()
96 for (SwitchCase sc : cases) in setCases()
105 public void addCase(SwitchCase switchCase) { in addCase()
108 cases = new ArrayList<SwitchCase>(); in addCase()
158 for (SwitchCase sc : cases) { in toSource()
174 for (SwitchCase sc: getCases()) { in visit()
H A DSwitchCase.java30 public class SwitchCase extends AstNode { class
39 public SwitchCase() { in SwitchCase() method in SwitchCase
42 public SwitchCase(int pos) { in SwitchCase() method in SwitchCase
46 public SwitchCase(int pos, int len) { in SwitchCase() method in SwitchCase
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.core/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/rewrite/describing/
H A DASTRewritingSwitchExpressionsTest.java140 SwitchCase caseStatement= (SwitchCase) statements.get(2); in testSwitchExpressions_since_12()
208 SwitchCase defaultCase = (SwitchCase) switchStatement.statements().get(4); in testSwitchExpressions_02_since_12()
283 SwitchCase defaultCase = (SwitchCase) switchExpression.statements().get(2); in testSwitchExpressions_03_since_12()
364 SwitchCase defaultCase = (SwitchCase) switchStmt.statements().get(2); in testSwitchStatement_Bug543720_since_12()
513 if (stmt instanceof SwitchCase) { in testSwitchStatement_Bug543720_05_since_12()
514 SwitchCase switchCase = (SwitchCase) stmt; in testSwitchStatement_Bug543720_05_since_12()
592 SwitchCase switchCase = (SwitchCase) stmt; in testSwitchStatement_Bug543720_06_since_12()
670 SwitchCase switchCase = (SwitchCase) stmt1; in testSwitchExpression_Bug543720_07_since_12()
749 SwitchCase switchCase = (SwitchCase) stmt1; in testSwitchExpression_Bug543720_08_since_12()
818 SwitchCase cse1 = (SwitchCase) statements.get(0); in testSwitchExpressions_05_since_12()
[all …]
/dports/java/eclipse/eclipse.platform.releng.aggregator-R4_16/eclipse.jdt.core/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/
H A DSwitchCase.java37 public class SwitchCase extends Statement { class
45 …new ChildPropertyDescriptor(SwitchCase.class, "expression", Expression.class, OPTIONAL, CYCLE_RISK…
53 …new ChildListPropertyDescriptor(SwitchCase.class, "expression", Expression.class, CYCLE_RISK); //$…
61 …new SimplePropertyDescriptor(SwitchCase.class, "switchLabeledRule", boolean.class, MANDATORY); //$…
79 createPropertyList(SwitchCase.class, propertyList); in createPropertyList()
84 createPropertyList(SwitchCase.class, propertyList); in createPropertyList()
137 SwitchCase(AST ast) { in SwitchCase() method in SwitchCase
194 SwitchCase result = new SwitchCase(target); in clone0()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/skia/src/sksl/ir/
H A DSkSLSwitchStatement.h27 std::vector<std::unique_ptr<SwitchCase>> cases, in SwitchStatement()
43 std::vector<std::unique_ptr<SwitchCase>>& cases() { in cases()
47 const std::vector<std::unique_ptr<SwitchCase>>& cases() const { in cases()
60 std::vector<std::unique_ptr<SwitchCase>> cloned; in clone()
61 for (const std::unique_ptr<SwitchCase>& sc : this->cases()) { in clone()
62 cloned.emplace_back(&sc->clone().release()->as<SwitchCase>()); in clone()
88 std::vector<std::unique_ptr<SwitchCase>> fCases;
/dports/www/firefox-esr/firefox-91.8.0/gfx/skia/skia/src/sksl/ir/
H A DSkSLSwitchStatement.h23 std::vector<std::unique_ptr<SwitchCase>> cases, in SwitchStatement()
32 std::vector<std::unique_ptr<SwitchCase>> cloned; in clone()
34 cloned.push_back(std::unique_ptr<SwitchCase>((SwitchCase*) s->clone().release())); in clone()
58 std::vector<std::unique_ptr<SwitchCase>> fCases;
H A DSkSLSwitchCase.h19 struct SwitchCase : public Statement { struct
20 SwitchCase(int offset, std::unique_ptr<Expression> value, in SwitchCase() function
31 return std::unique_ptr<Statement>(new SwitchCase(fOffset, in clone() argument
/dports/lang/spidermonkey78/firefox-78.9.0/gfx/skia/skia/src/sksl/ir/
H A DSkSLSwitchStatement.h23 std::vector<std::unique_ptr<SwitchCase>> cases, in SwitchStatement()
32 std::vector<std::unique_ptr<SwitchCase>> cloned; in clone()
34 cloned.push_back(std::unique_ptr<SwitchCase>((SwitchCase*) s->clone().release())); in clone()
58 std::vector<std::unique_ptr<SwitchCase>> fCases;
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/skia/src/sksl/ir/
H A DSkSLSwitchStatement.h23 std::vector<std::unique_ptr<SwitchCase>> cases, in SwitchStatement()
32 std::vector<std::unique_ptr<SwitchCase>> cloned; in clone()
34 cloned.push_back(std::unique_ptr<SwitchCase>((SwitchCase*) s->clone().release())); in clone()
60 std::vector<std::unique_ptr<SwitchCase>> fCases;
/dports/www/firefox/firefox-99.0/gfx/skia/skia/src/sksl/ir/
H A DSkSLSwitchStatement.h23 std::vector<std::unique_ptr<SwitchCase>> cases, in SwitchStatement()
32 std::vector<std::unique_ptr<SwitchCase>> cloned; in clone()
34 cloned.push_back(std::unique_ptr<SwitchCase>((SwitchCase*) s->clone().release())); in clone()
58 std::vector<std::unique_ptr<SwitchCase>> fCases;
/dports/mail/thunderbird/thunderbird-91.8.0/gfx/skia/skia/src/sksl/ir/
H A DSkSLSwitchStatement.h23 std::vector<std::unique_ptr<SwitchCase>> cases, in SwitchStatement()
32 std::vector<std::unique_ptr<SwitchCase>> cloned; in clone()
34 cloned.push_back(std::unique_ptr<SwitchCase>((SwitchCase*) s->clone().release())); in clone()
58 std::vector<std::unique_ptr<SwitchCase>> fCases;
/dports/math/rumur/rumur-2021.09.29/librumur/src/
H A DStmt.cc204 SwitchCase::SwitchCase(const std::vector<Ptr<Expr>> &matches_, in SwitchCase() function in rumur::SwitchCase
209 SwitchCase *SwitchCase::clone() const { return new SwitchCase(*this); } in clone()
211 void SwitchCase::visit(BaseTraversal &visitor) { in visit()
215 void SwitchCase::visit(ConstBaseTraversal &visitor) const { in visit()
219 Switch::Switch(const Ptr<Expr> &expr_, const std::vector<SwitchCase> &cases_, in Switch()
231 for (const SwitchCase &c : cases) { in validate()
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/test/nashorn/script/basic/parser/
H A DswitchStat.js.EXPECTED25 "type": "SwitchCase",
63 "type": "SwitchCase",
87 "type": "SwitchCase",
111 "type": "SwitchCase",
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/test/nashorn/script/basic/parser/
H A DswitchStat.js.EXPECTED25 "type": "SwitchCase",
63 "type": "SwitchCase",
87 "type": "SwitchCase",
111 "type": "SwitchCase",
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/test/nashorn/script/basic/parser/
H A DswitchStat.js.EXPECTED25 "type": "SwitchCase",
63 "type": "SwitchCase",
87 "type": "SwitchCase",
111 "type": "SwitchCase",
/dports/java/openjdk14/jdk14u-jdk-14.0.2-12-1/test/nashorn/script/basic/parser/
H A DswitchStat.js.EXPECTED25 "type": "SwitchCase",
63 "type": "SwitchCase",
87 "type": "SwitchCase",
111 "type": "SwitchCase",
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/test/nashorn/script/basic/parser/
H A DswitchStat.js.EXPECTED25 "type": "SwitchCase",
63 "type": "SwitchCase",
87 "type": "SwitchCase",
111 "type": "SwitchCase",
/dports/java/openjdk8-jre/jdk8u-jdk8u312-b07.1/nashorn/test/script/basic/parser/
H A DswitchStat.js.EXPECTED25 "type": "SwitchCase",
63 "type": "SwitchCase",
87 "type": "SwitchCase",
111 "type": "SwitchCase",
/dports/java/openjdk8/jdk8u-jdk8u312-b07.1/nashorn/test/script/basic/parser/
H A DswitchStat.js.EXPECTED25 "type": "SwitchCase",
63 "type": "SwitchCase",
87 "type": "SwitchCase",
111 "type": "SwitchCase",
/dports/devel/elixir-estree/elixir-estree-2.6.1/lib/es_tree/
H A Dswitch_case.ex1 defmodule ESTree.SwitchCase do module
2 @type t :: %ESTree.SwitchCase{
8 defstruct type: "SwitchCase",

12345678910>>...43