Home
last modified time | relevance | path

Searched refs:newMap (Results 1 – 18 of 18) sorted by relevance

/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyMap.java334 RubyMap newMap = newThisType(context); in dup() local
336 newMap.table.put(entry.getKey(), entry.getValue()); in dup()
338 return newMap; in dup()
348 RubyMap newMap = newThisType(context); in deepCopy() local
353 newMap.table.put(key.dup(), message.deepCopy(context)); in deepCopy()
358 newMap.table.put(key.dup(), table.get(key).dup()); in deepCopy()
361 return newMap; in deepCopy()
404 RubyMap newMap; in newThisType() local
406 newMap = (RubyMap) metaClass.newInstance(context, in newThisType()
411 newMap = (RubyMap) metaClass.newInstance(context, in newThisType()
[all …]
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DMapLiteTest.java217 assertEquals(newMap(1, 2), builder.getInt32ToInt32Field()); in testSanityCopyOnWrite()
220 assertEquals(newMap(1, 2), message.getInt32ToInt32Field()); in testSanityCopyOnWrite()
221 assertEquals(newMap(1, 2, 2, 3), builder.getInt32ToInt32Field()); in testSanityCopyOnWrite()
269 assertEquals(newMap(1, 2), builder.build().getInt32ToInt32Field()); in testMutableMapLifecycle()
270 assertEquals(newMap(1, 2), builder.getInt32ToInt32Field()); in testMutableMapLifecycle()
272 assertEquals(newMap(1, 2, 2, 3), builder.getInt32ToInt32Field()); in testMutableMapLifecycle()
275 assertEquals(newMap(1, TestMap.EnumValue.BAR), builder.build().getInt32ToEnumField()); in testMutableMapLifecycle()
276 assertEquals(newMap(1, TestMap.EnumValue.BAR), builder.getInt32ToEnumField()); in testMutableMapLifecycle()
279 newMap(1, TestMap.EnumValue.BAR, 2, TestMap.EnumValue.FOO), builder.getInt32ToEnumField()); in testMutableMapLifecycle()
282 assertEquals(newMap(1, "1"), builder.build().getInt32ToStringField()); in testMutableMapLifecycle()
[all …]
DMapForProto2LiteTest.java211 assertEquals(newMap(1, 2), message.getInt32ToInt32Field()); in testSanityCopyOnWrite()
212 assertEquals(newMap(1, 2), builder.getInt32ToInt32Field()); in testSanityCopyOnWrite()
214 assertEquals(newMap(1, 2), message.getInt32ToInt32Field()); in testSanityCopyOnWrite()
215 assertEquals(newMap(1, 2, 2, 3), builder.getInt32ToInt32Field()); in testSanityCopyOnWrite()
257 assertEquals(newMap(1, 2), builder.build().getInt32ToInt32Field()); in testMutableMapLifecycle()
258 assertEquals(newMap(1, 2), builder.getInt32ToInt32Field()); in testMutableMapLifecycle()
260 assertEquals(newMap(1, 2, 2, 3), builder.getInt32ToInt32Field()); in testMutableMapLifecycle()
263 assertEquals(newMap(1, TestMap.EnumValue.BAR), builder.build().getInt32ToEnumField()); in testMutableMapLifecycle()
264 assertEquals(newMap(1, TestMap.EnumValue.BAR), builder.getInt32ToEnumField()); in testMutableMapLifecycle()
267 newMap(1, TestMap.EnumValue.BAR, 2, TestMap.EnumValue.FOO), builder.getInt32ToEnumField()); in testMutableMapLifecycle()
[all …]
DMapTest.java321 assertEquals(newMap(1, 2), builder.build().getInt32ToInt32Field()); in testMutableMapLifecycle()
328 assertEquals(newMap(1, 2), builder.getInt32ToInt32Field()); in testMutableMapLifecycle()
330 assertEquals(newMap(1, 2, 2, 3), builder.getInt32ToInt32Field()); in testMutableMapLifecycle()
334 assertEquals(newMap(1, TestMap.EnumValue.BAR), builder.build().getInt32ToEnumField()); in testMutableMapLifecycle()
341 assertEquals(newMap(1, TestMap.EnumValue.BAR), builder.getInt32ToEnumField()); in testMutableMapLifecycle()
344 newMap(1, TestMap.EnumValue.BAR, 2, TestMap.EnumValue.FOO), in testMutableMapLifecycle()
349 assertEquals(newMap(1, "1"), builder.build().getInt32ToStringField()); in testMutableMapLifecycle()
356 assertEquals(newMap(1, "1"), builder.getInt32ToStringField()); in testMutableMapLifecycle()
359 newMap(1, "1", 2, "2"), in testMutableMapLifecycle()
364 assertEquals(newMap(1, TestMap.MessageValue.getDefaultInstance()), in testMutableMapLifecycle()
[all …]
DMapForProto2Test.java318 assertEquals(newMap(1, 2), builder.build().getInt32ToInt32Field()); in testMutableMapLifecycle()
325 assertEquals(newMap(1, 2), builder.getInt32ToInt32Field()); in testMutableMapLifecycle()
327 assertEquals(newMap(1, 2, 2, 3), builder.getInt32ToInt32Field()); in testMutableMapLifecycle()
331 assertEquals(newMap(1, TestMap.EnumValue.BAR), builder.build().getInt32ToEnumField()); in testMutableMapLifecycle()
338 assertEquals(newMap(1, TestMap.EnumValue.BAR), builder.getInt32ToEnumField()); in testMutableMapLifecycle()
341 newMap(1, TestMap.EnumValue.BAR, 2, TestMap.EnumValue.FOO), in testMutableMapLifecycle()
346 assertEquals(newMap(1, "1"), builder.build().getInt32ToStringField()); in testMutableMapLifecycle()
353 assertEquals(newMap(1, "1"), builder.getInt32ToStringField()); in testMutableMapLifecycle()
356 newMap(1, "1", 2, "2"), in testMutableMapLifecycle()
361 assertEquals(newMap(1, TestMap.MessageValue.getDefaultInstance()), in testMutableMapLifecycle()
[all …]
/third_party/typescript/tests/baselines/reference/
DnewMap.errors.txt1 tests/cases/compiler/newMap.ts(1,9): error TS2743: No overload expects 1 type arguments, but overlo…
4 ==== tests/cases/compiler/newMap.ts (1 errors) ====
DnewMap.types1 === tests/cases/compiler/newMap.ts ===
DnewMap.symbols1 === tests/cases/compiler/newMap.ts ===
/third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/gen/
Dgenerate.go54 "Map": newMap,
104 m := newMap()
153 func newMap() Map { return Map{} } func
/third_party/skia/third_party/externals/dawn/src/dawn_node/tools/src/cmd/idlgen/
Dmain.go394 m := newMap()
435 func newMap() Map { return Map{} } func
/third_party/node/deps/v8/src/builtins/
Darray-filter.tq142 const newMap: Map =
144 return AllocateJSArray(ElementsKind::PACKED_SMI_ELEMENTS, newMap, len, len);
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DBidiLine.java1207 int[] newMap = new int[bidi.resultLength]; in getVisualMap() local
1208 System.arraycopy(indexMap, 0, newMap, 0, bidi.resultLength); in getVisualMap()
1209 return newMap; in getVisualMap()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DBidiLine.java1208 int[] newMap = new int[bidi.resultLength]; in getVisualMap() local
1209 System.arraycopy(indexMap, 0, newMap, 0, bidi.resultLength); in getVisualMap()
1210 return newMap; in getVisualMap()
/third_party/typescript/src/compiler/
DwatchUtilities.ts395 const newMap = new Map(lookups); constant
398 newMap,
Dutilities.ts5718 newMap: ReadonlyESMap<K, U>,
5724 const valueInNewMap = newMap.get(key);
5744 …export function mutateMap<K, T, U>(map: ESMap<K, T>, newMap: ReadonlyESMap<K, U>, options: MutateM…
5746 mutateMapSkippingNewValues(map, newMap, options);
5750 newMap.forEach((valueInNewMap, key) => {
/third_party/node/deps/corepack/dist/lib/
Dcorepack.cjs36192 const newMap = {};
36196 newMap[key] = [invalidationKey, offset, offset + buffer.length];
36205 if (hasOwnProperty.call(newMap, key))
36211 return [buffers, newMap];
/third_party/typescript/lib/
DtypingsInstaller.js19923 function mutateMapSkippingNewValues(map, newMap, options) { argument
19927 var valueInNewMap = newMap.get(key);
19943 function mutateMap(map, newMap, options) { argument
19945 mutateMapSkippingNewValues(map, newMap, options);
19948 newMap.forEach(function (valueInNewMap, key) {
120395 var newMap = new ts.Map(lookups);
120396 ts.mutateMap(packageJsonWatches, newMap, {
Dtsc.js15730 function mutateMapSkippingNewValues(map, newMap, options) { argument
15733 var valueInNewMap = newMap.get(key);
15744 function mutateMap(map, newMap, options) { argument
15745 mutateMapSkippingNewValues(map, newMap, options);
15747 newMap.forEach(function (valueInNewMap, key) {
99809 var newMap = new ts.Map(lookups);
99810 ts.mutateMap(packageJsonWatches, newMap, {