/third_party/typescript/tests/baselines/reference/ |
H A D | genericFunctionsWithOptionalParameters1.js | 3 fold<T, S>(c?: Array<T>, folder?: (s: S, t: T) => T, init?: S): T; 8 utils.fold(); // no error 9 utils.fold(null); // no error 10 utils.fold(null, null); // no error 11 utils.fold(null, null, null); // no error 16 utils.fold(); // no error
17 utils.fold(null); // no error
18 utils.fold(null, null); // no error
19 utils.fold(null, null, null); // no error
|
H A D | genericFunctionsWithOptionalParameters2.js | 3 fold<T, S>(c: Array<T>, folder?: (s: S, t: T) => T, init?: S): T; 8 utils.fold(); // error 9 utils.fold(null); // no error 10 utils.fold(null, null); // no error 11 utils.fold(null, null, null); // error: Unable to invoke type with no call signatures 16 utils.fold(); // error
17 utils.fold(null); // no error
18 utils.fold(null, null); // no error
19 utils.fold(null, null, null); // error: Unable to invoke type with no call signatures
|
H A D | typeInferenceFBoundedTypeParams.js | 4 function fold<a, r>(values: a[], result: r, fold: (result: r, value: a) => r): r { 6 result = fold(result, value); 16 fold( 28 function fold(values, result, fold) {
function 31 result = fold(result, value);
39 fold([1, 2, 3], [], function (result, value) { return append(result, ["", ""]); });
|
/third_party/python/Lib/test/test_zoneinfo/ |
H A D | test_zoneinfo.py | 107 fold=dt.fold, 313 if zt.fold: 324 # Cases are of the form key, dt, fold, offset 356 for dt, fold, offset in tests: 357 dt = dt.replace(fold=fold, tzinfo=tzi) 368 if not zt.fold: 376 self.assertEqual(dt_before.fold, 0, (dt_before, dt_utc)) 379 self.assertEqual(dt_after.fold, 432 fold=dt.fold, global() variable in CZoneInfoTest.test_fold_mutate.to_subclass.SameAddSubclass 1822 def fold(self): global() member in ZoneTransition [all...] |
/third_party/rust/crates/syn/examples/trace-var/trace-var/src/ |
H A D | lib.rs | 4 use syn::fold::{self, Fold}; 70 let right = fold::fold_expr(self, right); in assign_and_print() 122 Expr::Assign(fold::fold_expr_assign(self, e)) in fold_expr() 129 Expr::Binary(fold::fold_expr_binary(self, e)) in fold_expr() 132 _ => fold::fold_expr(self, e), in fold_expr() 142 Stmt::Local(fold::fold_local(self, s)) in fold_stmt() 145 _ => fold::fold_stmt(self, s), in fold_stmt()
|
/third_party/mesa3d/src/gallium/drivers/r600/sb/ |
H A D | sb_expr.h | 68 bool fold(node &n); 69 bool fold(container_node &n); 70 bool fold(alu_node &n); 71 bool fold(fetch_node &n); 72 bool fold(cf_node &n);
|
H A D | sb_ir.cpp | 303 bool node::fold_dispatch(expr_handler* ex) { return ex->fold(*this); } in fold_dispatch() 304 bool container_node::fold_dispatch(expr_handler* ex) { return ex->fold(*this); } in fold_dispatch() 305 bool alu_node::fold_dispatch(expr_handler* ex) { return ex->fold(*this); } in fold_dispatch() 306 bool alu_packed_node::fold_dispatch(expr_handler* ex) { return ex->fold(*this); } in fold_dispatch() 307 bool fetch_node::fold_dispatch(expr_handler* ex) { return ex->fold(*this); } in fold_dispatch() 308 bool cf_node::fold_dispatch(expr_handler* ex) { return ex->fold(*this); } in fold_dispatch()
|
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/ |
H A D | FoldExpressions.cpp | 6 // FoldExpressions.cpp: Fold expressions. This may fold expressions so that the qualifier of the 39 TIntermTyped *folded = node->fold(mDiagnostics); 51 TIntermTyped *folded = node->fold(mDiagnostics); 63 TIntermTyped *folded = node->fold(mDiagnostics); 75 TIntermTyped *folded = node->fold(mDiagnostics); 87 TIntermTyped *folded = node->fold(mDiagnostics);
|
/third_party/python/Include/ |
H A D | datetime.h | 84 unsigned char fold; member 112 unsigned char fold; member 134 #define PyDateTime_DATE_GET_FOLD(o) (((PyDateTime_DateTime*)o)->fold) 146 #define PyDateTime_TIME_GET_FOLD(o) (((PyDateTime_Time*)o)->fold) 230 #define PyDateTime_FromDateAndTimeAndFold(year, month, day, hour, min, sec, usec, fold) \ 232 min, sec, usec, Py_None, fold, PyDateTimeAPI->DateTimeType) 238 #define PyTime_FromTimeAndFold(hour, minute, second, usecond, fold) \ 240 Py_None, fold, PyDateTimeAPI->TimeType)
|
/third_party/python/Doc/includes/ |
H A D | tzinfo_examples.py | 28 # Detect fold 29 fold = (args == _time.localtime(stamp - dst_diff)) 31 tzinfo=self, fold=fold) 146 # Fold (an ambiguous hour): use dt.fold to disambiguate. 147 return ZERO if dt.fold else HOUR 149 # Gap (a non-existent hour): reverse the fold rule. 150 return HOUR if dt.fold else ZERO 163 return std_time.replace(fold=1)
|
/third_party/python/Lib/test/test_email/ |
H A D | test_headerregistry.py | 142 self.assertEqual(h.fold(policy=policy.default), folded) 259 self.assertEqual(h.fold(policy=policy.default), folded) 819 self.assertEqual(h.fold(policy=policy.default), folded) 861 self.assertEqual(h.fold(policy=policy.default), folded) 944 self.assertEqual(h.fold(policy=policy.default), 1374 self.assertEqual(h.fold(policy=policy.default.clone(max_line_length=40)), 1637 self.assertEqual(h.fold(policy=policy.default), 1642 self.assertEqual(h.fold(policy=policy.default), 1649 self.assertEqual(h.fold(policy=policy.default), 1658 h.fold(polic [all...] |
H A D | test_policy.py | 90 abstract_methods = ('fold', 147 self.assertEqual(p1.fold('Subject', msg['Subject']), expected) 148 self.assertEqual(p2.fold('Subject', msg['Subject']), expected) 255 actual = policy.fold('Subject', 'ą' * 12) 278 policy.fold("Subject", subject) 296 fold = fold_binary = header_fetch_parser = badmethod
|
/third_party/node/tools/inspector_protocol/jinja2/ |
H A D | optimizer.py | 6 The jinja optimizer is currently trying to constant fold a few expressions 35 def fold(self, node, eval_ctx=None): member in Optimizer 48 visit_Filter = visit_Test = visit_CondExpr = fold 49 del fold
|
/third_party/python/Lib/zoneinfo/ |
H A D | _zoneinfo.py | 127 fold = 0 131 tti, fold = self._tz_after.get_trans_info_fromutc( 136 fold = 0 149 # Detect fold 151 fold = shift.total_seconds() > timestamp - self._trans_utc[idx - 1] 153 if fold: 154 return dt.replace(fold=1) 167 lt = self._trans_local[dt.fold] 175 return self._tz_after.get_trans_info(ts, dt.year, dt.fold) 461 def _get_trans_info(self, ts, year, fold) [all...] |
/third_party/python/Lib/ |
H A D | datetime.py | 528 def _check_time_fields(hour, minute, second, microsecond, fold): 541 if fold not in (0, 1): 542 raise ValueError('fold must be either 0 or 1', fold) 543 return hour, minute, second, microsecond, fold 1336 hour, minute, second, microsecond, tzinfo, fold 1340 def __new__(cls, hour=0, minute=0, second=0, microsecond=0, tzinfo=None, *, fold=0): 1348 fold (keyword only, default to zero) 1366 hour, minute, second, microsecond, fold = _check_time_fields( 1367 hour, minute, second, microsecond, fold) 1406 def fold(self): global() member in time 1739 def fold(self): global() member in datetime [all...] |
/third_party/python/Lib/test/ |
H A D | datetimetester.py | 2233 # bad fold 2235 2000, 1, 31, fold=-1) 2237 2000, 1, 31, fold=2) 2238 # Positional fold: 2446 t1 = t0.replace(fold=1) 5437 # An experimental reimplementation of fromutc that respects the "fold" flag. 5450 off0 = dt.replace(fold=0).utcoffset() 5451 off1 = dt.replace(fold=1).utcoffset() 5465 ldt = ldt.replace(fold=1) 5471 # Reimplementing simplified US timezones to respect the "fold" fla [all...] |
/third_party/python/Lib/email/ |
H A D | policy.py | 165 def fold(self, name, value): member in EmailPolicy 174 calling its fold method with the current policy. 188 The same as fold if cte_type is 7bit, except that the returned value is 206 return value.fold(policy=self) 214 return self.header_factory(name, ''.join(lines)).fold(policy=self)
|
/third_party/rust/crates/syn/codegen/src/ |
H A D | main.rs | 26 mod fold; modules 48 fold::generate(&defs)?; in main()
|
/third_party/rust/crates/unicode-width/src/ |
H A D | lib.rs | 124 self.chars().map(|c| cw::width(c, false).unwrap_or(0)).fold(0, Add::add) in width() 129 self.chars().map(|c| cw::width(c, true).unwrap_or(0)).fold(0, Add::add) in width_cjk()
|
/third_party/python/Modules/ |
H A D | _datetimemodule.c | 477 check_time_args(int h, int m, int s, int us, int fold) in check_time_args() argument 499 if (fold != 0 && fold != 1) { in check_time_args() 501 "fold must be either 0 or 1"); in check_time_args() 989 int second, int usecond, PyObject *tzinfo, int fold, PyTypeObject *type) in new_datetime_ex2() 997 if (check_time_args(hour, minute, second, usecond, fold) < 0) { in new_datetime_ex2() 1016 DATE_SET_FOLD(self, fold); in new_datetime_ex2() 1029 #define new_datetime(y, m, d, hh, mm, ss, us, tzinfo, fold) \ 1030 new_datetime_ex2(y, m, d, hh, mm, ss, us, tzinfo, fold, \ 1036 int fold, PyObjec in new_datetime_subclass_fold_ex() 988 new_datetime_ex2(int year, int month, int day, int hour, int minute, int second, int usecond, PyObject *tzinfo, int fold, PyTypeObject *type) new_datetime_ex2() argument 1034 new_datetime_subclass_fold_ex(int year, int month, int day, int hour, int minute, int second, int usecond, PyObject *tzinfo, int fold, PyObject *cls) new_datetime_subclass_fold_ex() argument 1069 new_time_ex2(int hour, int minute, int second, int usecond, PyObject *tzinfo, int fold, PyTypeObject *type) new_time_ex2() argument 1382 append_keyword_fold(PyObject *repr, int fold) append_keyword_fold() argument 4247 int fold = 0; time_new() local 4342 int fold = TIME_GET_FOLD(self); time_repr() local 4605 int fold = TIME_GET_FOLD(self); time_replace() local 4926 int fold = 0; datetime_new() local 5035 int year, month, day, hour, minute, second, fold = 0; datetime_from_timet_and_us() local 6061 int fold = DATE_GET_FOLD(self); datetime_replace() local 6328 local_to_seconds(int year, int month, int day, int hour, int minute, int second, int fold) local_to_seconds() argument [all...] |
H A D | _zoneinfo.c | 136 find_tzrule_ttinfo(_tzrule *rule, int64_t ts, unsigned char fold, int year); 139 unsigned char *fold); 521 unsigned char fold = 0; in zoneinfo_fromutc() local 529 PyDateTime_GET_YEAR(dt), &fold); in zoneinfo_fromutc() 531 // Immediately after the last manual transition, the fold/gap is in zoneinfo_fromutc() 535 // adjust the fold value. in zoneinfo_fromutc() 547 fold = 1; in zoneinfo_fromutc() 564 // Detect fold in zoneinfo_fromutc() 568 fold = 1; in zoneinfo_fromutc() 577 if (fold) { in zoneinfo_fromutc() 1352 find_tzrule_ttinfo(_tzrule *rule, int64_t ts, unsigned char fold, int year) find_tzrule_ttinfo() argument 1405 find_tzrule_ttinfo_fromutc(_tzrule *rule, int64_t ts, int year, unsigned char *fold) find_tzrule_ttinfo_fromutc() argument 2152 unsigned char fold = PyDateTime_DATE_GET_FOLD(dt); find_ttinfo() local [all...] |
/third_party/littlefs/scripts/ |
H A D | structs.py | 261 def fold(Result, results, *, function 312 # fold again 313 results = fold(Result, results, by=by) 315 diff_results = fold(Result, diff_results, by=by) 437 r = next(iter(fold(Result, results, by=[])), None) 442 diff_r = next(iter(fold(Result, diff_results, by=[])), None) 495 # fold 496 results = fold(StructResult, results, by=by, defines=defines) 546 # fold 547 diff_results = fold(StructResul [all...] |
H A D | cov.py | 300 def fold(Result, results, *, function 351 # fold again 352 results = fold(Result, results, by=by) 354 diff_results = fold(Result, diff_results, by=by) 476 r = next(iter(fold(Result, results, by=[])), None) 481 diff_r = next(iter(fold(Result, diff_results, by=[])), None) 517 results = fold(Result, results, by=['file', 'line']) 618 # fold 619 results = fold(CovResult, results, by=by, defines=defines) 669 # fold [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | CaseMap.java | 56 public static Fold fold() { return Fold.DEFAULT; } in fold() method in CaseMap 378 * @see #fold() 431 return CaseMapImpl.fold(internalOptions, src); in apply() 453 return CaseMapImpl.fold(internalOptions, src, dest, edits); in apply()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
H A D | CaseMap.java | 52 public static Fold fold() { return Fold.DEFAULT; } in fold() method in CaseMap 356 * @see #fold() 405 return CaseMapImpl.fold(internalOptions, src); in apply() 426 return CaseMapImpl.fold(internalOptions, src, dest, edits); in apply()
|