/third_party/typescript/tests/baselines/reference/ |
H A D | contextuallyTypedByDiscriminableUnion.js | 11 function invoke(item: ADT) { 12 if (item.kind === "a") { 13 item.method(""); 16 item.method(42); 29 function invoke(item) {
30 if (item.kind === "a") {
31 item.method("");
34 item.method(42);
|
H A D | contravariantInferenceAndTypeGuard.js | 7 type IteratorFn<TData, TResult, TContext = List<TData>> = (this: TContext, item: TData, node: ListItem<TData>, list: List<TData>) => TResult; 8 type FilterFn<TData, TResult extends TData, TContext = List<TData>> = (this: TContext, item: TData, node: ListItem<TData>, list: List<TData>) => item is TResult; 20 const filter1 = list2.filter(function(item, node, list): item is Test { 22 item; // $ExpectType Test | null 25 return !!item; 33 var filter1 = list2.filter(function (item, node, list) {
35 item; // $ExpectType Test | null
38 return !!item;
[all...] |
H A D | objectInstantiationFromUnionSpread.js | 15 a.map(item => ({ ...item })).filter(value => {}); 19 a.map(item => ({ ...item })).filter(value => {}); 37 a.map(function (item) { return (__assign({}, item)); }).filter(function (value) { });
40 a.map(function (item) { return (__assign({}, item)); }).filter(function (value) { });
|
/third_party/icu/tools/unicodetools/com/ibm/rbm/ |
H A D | RBTMXExporter.java | 76 private String convertEncoding(BundleItem item) { in convertEncoding() argument 77 if (item != null && item.getParentGroup() != null && item.getParentGroup().getParentBundle() != null) { in convertEncoding() 78 String language = item.getParentGroup().getParentBundle().getLanguageEncoding(); in convertEncoding() 79 String country = item.getParentGroup().getParentBundle().getCountryEncoding(); in convertEncoding() 80 String variant = item.getParentGroup().getParentBundle().getVariantEncoding(); in convertEncoding() 97 private void appendTUV(Document xml, Element tu, BundleItem item) { in appendTUV() argument 99 tuv.setAttribute("lang", convertEncoding(item)); in appendTUV() 100 tuv.setAttribute("creationdate",convertToISO(item in appendTUV() [all...] |
H A D | RBxliffImporter.java | 107 Text text_elem = (Text)header_note_list.item(0).getChildNodes().item(0); in importDoc() 115 Node prop_group_list = ((Element)header).getElementsByTagName("prop-group").item(0); in importDoc() 120 if (prop_list.item(prop) instanceof Element) { in importDoc() 121 Element property_elem = (Element)prop_list.item(prop); in importDoc() 124 String value = property_elem.getChildNodes().item(0).getNodeValue(); in importDoc() 173 Node body_elem = body_list.item(i); in importDoc() 214 if (!(tu_list.item(i) instanceof Element)) { in importDoc() 217 Element tu_elem = (Element)tu_list.item(i); in importDoc() 230 Text text_elem = (Text)notes_list.item( in importDoc() [all...] |
H A D | ScanResult.java | 20 BundleItem item; field in ScanResult 23 ScanResult(BundleItem item) { in ScanResult() argument 24 this.item = item; in ScanResult() 29 return item; in getItem() 45 return item.getKey(); in getName() 49 if (item.getParentGroup() != null) return item.getParentGroup().getName(); in getGroupName()
|
/third_party/libwebsockets/lib/core/ |
H A D | lws_map.c | 184 lws_map_item_t *item; in lws_map_item_create() local 189 item = lws_map_item_lookup(map, key, keylen); in lws_map_item_create() 190 if (item) in lws_map_item_create() 191 lws_map_item_destroy(item); in lws_map_item_create() 193 item = map->info._alloc(map, sizeof(*item) + keylen + valuelen); in lws_map_item_create() 194 if (!item) in lws_map_item_create() 197 lws_dll2_clear(&item->list); in lws_map_item_create() 198 item->keylen = keylen; in lws_map_item_create() 199 item in lws_map_item_create() 218 lws_map_item_destroy(lws_map_item_t *item) lws_map_item_destroy() argument [all...] |
/third_party/mesa3d/src/intel/dev/ |
H A D | intel_hwconfig.c | 131 const struct hwconfig *item); 168 key_to_name(item->key), (V), #F, \ 174 const struct hwconfig *item) in apply_hwconfig_item() 176 switch (item->key) { in apply_hwconfig_item() 192 DEVINFO_HWCONFIG(max_eus_per_subslice, item->val[0]); in apply_hwconfig_item() 195 DEVINFO_HWCONFIG(num_thread_per_eu, item->val[0]); in apply_hwconfig_item() 198 DEVINFO_HWCONFIG(max_vs_threads, item->val[0]); in apply_hwconfig_item() 201 DEVINFO_HWCONFIG(max_gs_threads, item->val[0]); in apply_hwconfig_item() 204 DEVINFO_HWCONFIG(max_tcs_threads, item->val[0]); in apply_hwconfig_item() 207 DEVINFO_HWCONFIG(max_tes_threads, item in apply_hwconfig_item() 173 apply_hwconfig_item(struct intel_device_info *devinfo, const struct hwconfig *item) apply_hwconfig_item() argument 293 print_hwconfig_item(struct intel_device_info *devinfo, const struct hwconfig *item) print_hwconfig_item() argument [all...] |
/third_party/rust/crates/clap/clap_derive/src/derives/ |
H A D | args.rs | 23 use crate::item::{Item, Kind, Name}; 35 let item = Item::from_args_struct(input, name)?; in derive_args() 40 let item = Item::from_args_field(field, item.casing(), item.env_casing())?; in derive_args() 41 Ok((field, item)) in derive_args() 44 gen_for_struct(&item, ident, &input.generics, &fields) in derive_args() 51 let item = Item::from_args_struct(input, name)?; in derive_args() 56 let item = Item::from_args_field(field, item in derive_args() [all...] |
/third_party/node/test/common/ |
H A D | v8.js | 23 const item = data.statistics[0]; 24 assert.ok(typeof item.gcType === 'string'); 25 assert.ok(item.cost >= 0); 26 assert.ok(typeof item.beforeGC === 'object'); 27 assert.ok(typeof item.afterGC === 'object'); 29 assert.ok(typeof item.afterGC.heapStatistics === 'object'); 44 assert.ok(item.afterGC.heapStatistics[key] >= 0); 46 assert.ok(typeof item.afterGC.heapSpaceStatistics === 'object'); 55 const value = item.afterGC.heapSpaceStatistics[0][key];
|
/third_party/selinux/libsepol/cil/src/ |
H A D | cil_list.h | 47 #define cil_list_for_each(item, list) \ 48 for (item = (list)->head; item != NULL; item = item->next) 53 void cil_list_item_init(struct cil_list_item **item); 54 void cil_list_item_destroy(struct cil_list_item **item, unsigned destroy_data); 59 void cil_list_append_item(struct cil_list *list, struct cil_list_item *item); 60 void cil_list_prepend_item(struct cil_list *list, struct cil_list_item *item);
|
/third_party/node/deps/v8/third_party/jinja2/ |
H A D | filters.py | 72 def attrgetter(item): 74 item = environment.getitem(item, part) 76 if default and isinstance(item, Undefined): 77 item = default 80 item = postprocess(item) 82 return item 105 def attrgetter(item): 108 item_i = item [all...] |
/third_party/skia/third_party/externals/jinja2/ |
H A D | filters.py | 72 def attrgetter(item): 74 item = environment.getitem(item, part) 76 if default and isinstance(item, Undefined): 77 item = default 80 item = postprocess(item) 82 return item 105 def attrgetter(item): 108 item_i = item [all...] |
/third_party/skia/third_party/externals/freetype/src/pfr/ |
H A D | pfrload.c | 631 PFR_KernItem item = NULL; in FT_CALLBACK_DEF() local 636 if ( FT_NEW( item ) ) in FT_CALLBACK_DEF() 641 item->pair_count = PFR_NEXT_BYTE( p ); in FT_CALLBACK_DEF() 642 item->base_adj = PFR_NEXT_SHORT( p ); in FT_CALLBACK_DEF() 643 item->flags = PFR_NEXT_BYTE( p ); in FT_CALLBACK_DEF() 644 item->offset = phy_font->offset + in FT_CALLBACK_DEF() 648 item->pair_size = 3; in FT_CALLBACK_DEF() 650 if ( item->flags & PFR_KERN_2BYTE_CHAR ) in FT_CALLBACK_DEF() 651 item->pair_size += 2; in FT_CALLBACK_DEF() 653 if ( item in FT_CALLBACK_DEF() 803 PFR_KernItem item, next; pfr_phy_font_done() local [all...] |
/third_party/gn/src/gn/ |
H A D | builder_record.cc | 7 #include "gn/item.h" 34 bool BuilderRecord::IsItemOfType(const Item* item, ItemType type) { in IsItemOfType() argument 37 return !!item->AsTarget(); in IsItemOfType() 39 return !!item->AsConfig(); in IsItemOfType() 41 return !!item->AsToolchain(); in IsItemOfType() 43 return !!item->AsPool(); in IsItemOfType() 51 BuilderRecord::ItemType BuilderRecord::TypeOfItem(const Item* item) { in TypeOfItem() argument 52 if (item->AsTarget()) in TypeOfItem() 54 if (item->AsConfig()) in TypeOfItem() 56 if (item in TypeOfItem() [all...] |
/third_party/elfutils/libdwfl/ |
H A D | linux-core-attach.c | 148 const Ebl_Core_Item *item; in core_next_thread() local 149 for (item = items; item < items + nitems; item++) in core_next_thread() 150 if (strcmp (item->name, "pid") == 0) in core_next_thread() 152 if (item == items + nitems) in core_next_thread() 154 uint32_t val32 = read_4ubyte_unaligned_noncvt (desc + item->offset); in core_next_thread() 201 const Ebl_Core_Item *item; in core_set_initial_registers() local 202 for (item = items; item < item in core_set_initial_registers() 396 const Ebl_Core_Item *item; dwfl_core_file_attach() local [all...] |
/third_party/skia/third_party/externals/freetype/src/tools/ftrandom/ |
H A D | ftrandom.c | 268 figurefiletype( struct fontlist* item ) in figurefiletype() 273 item->isbinary = item->isascii = item->ishex = false; in figurefiletype() 275 foo = fopen( item->name, "rb" ); in figurefiletype() 293 item->isbinary = true; in figurefiletype() 298 item->isbinary = true; in figurefiletype() 303 if ( strstr( item->name, ".pfa" ) || in figurefiletype() 304 strstr( item->name, ".PFA" ) ) in figurefiletype() 305 item in figurefiletype() 437 copyfont( struct fontlist* item, char* newfont ) copyfont() argument [all...] |
/third_party/node/lib/ |
H A D | timers.js | 79 function unenroll(item) { 80 if (item._destroyed) 83 item._destroyed = true; 85 if (item[kHasPrimitive]) 86 delete knownTimersById[item[async_id_symbol]]; 89 if (destroyHooksExist() && item[async_id_symbol] !== undefined) 90 emitDestroy(item[async_id_symbol]); 92 L.remove(item); 99 if (item[kRefed]) { 101 const msecs = MathTrunc(item [all...] |
/third_party/python/Lib/ |
H A D | queue.py | 44 # Notify not_empty whenever an item is added to the queue; a 48 # Notify not_full whenever an item is removed from the queue; 66 for every item that had been put() into the queue). 82 The count of unfinished tasks goes up whenever an item is added to the 84 to indicate the item was retrieved and all work on it is complete. 122 def put(self, item, block=True, timeout=None): 123 '''Put an item into the queue. 129 Otherwise ('block' is false), put an item on the queue if a free slot 150 self._put(item) 155 '''Remove and return an item fro [all...] |
/third_party/python/Modules/clinic/ |
H A D | _heapqmodule.c.h | 6 "heappush($module, heap, item, /)\n" 9 "Push item onto heap, maintaining the heap invariant."); 15 _heapq_heappush_impl(PyObject *module, PyObject *heap, PyObject *item); 22 PyObject *item; in _heapq_heappush() local 32 item = args[1]; in _heapq_heappush() 33 return_value = _heapq_heappush_impl(module, heap, item); in _heapq_heappush() 43 "Pop the smallest item off the heap, maintaining the heap invariant."); 69 "heapreplace($module, heap, item, /)\n" 72 "Pop and return the current smallest value, and add the new item.\n" 76 "returned may be larger than item! Tha 93 PyObject *item; _heapq_heapreplace() local 130 PyObject *item; _heapq_heappushpop() local 223 PyObject *item; _heapq__heapreplace_max() local [all...] |
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | Row.java | 61 public Row<C0, C1, C2, C3, C4> set0(C0 item) { in set0() argument 62 return set(0, item); in set0() 67 public Row<C0, C1, C2, C3, C4> set1(C1 item) { in set1() argument 68 return set(1, item); in set1() 73 public Row<C0, C1, C2, C3, C4> set2(C2 item) { in set2() argument 74 return set(2, item); in set2() 79 public Row<C0, C1, C2, C3, C4> set3(C3 item) { in set3() argument 80 return set(3, item); in set3() 85 public Row<C0, C1, C2, C3, C4> set4(C4 item) { in set4() argument 86 return set(4, item); in set4() 92 set(int i, Object item) set() argument [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | Row.java | 77 public Row<C0, C1, C2, C3, C4> set0(C0 item) { in set0() argument 78 return set(0, item); in set0() 83 public Row<C0, C1, C2, C3, C4> set1(C1 item) { in set1() argument 84 return set(1, item); in set1() 89 public Row<C0, C1, C2, C3, C4> set2(C2 item) { in set2() argument 90 return set(2, item); in set2() 95 public Row<C0, C1, C2, C3, C4> set3(C3 item) { in set3() argument 96 return set(3, item); in set3() 101 public Row<C0, C1, C2, C3, C4> set4(C4 item) { in set4() argument 102 return set(4, item); in set4() 108 set(int i, Object item) set() argument [all...] |
/third_party/python/Tools/c-analyzer/c_analyzer/ |
H A D | match.py | 162 for item in items: 163 if is_public_api(item): 164 public.add(item.id) 165 elif not _match.is_forward_decl(item): 166 actual.append(item) 170 raise Exception(item) 171 for item in actual: 172 _info.set_flag(item, 'is_public', item.id in public) 173 yield item [all...] |
/third_party/python/Tools/c-analyzer/c_parser/ |
H A D | match.py | 28 def is_type_decl(item): 29 return _KIND.is_type_decl(item.kind) 32 def is_decl(item): 33 return _KIND.is_decl(item.kind) 136 for item in items: 137 if item.kind in kinds: 138 yield item 163 for item in items: 165 collated[item.kind].append(item) [all...] |
/third_party/popt/src/ |
H A D | poptconfig.c | 231 poptItem item = &item_buf; in poptConfigLine() local 238 memset(item, 0, sizeof(*item)); in poptConfigLine() 265 item->option.longName = opt + 2; in poptConfigLine() 267 item->option.shortName = opt[1]; in poptConfigLine() 297 item->option.longName = longName; in poptConfigLine() 299 item->option.shortName = longName[0]; in poptConfigLine() 303 if (poptParseArgvString(se, &item->argc, &item->argv)) goto exit; in poptConfigLine() 305 item in poptConfigLine() [all...] |