MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / copy

Method copy

projects/JavaScript/proto/test.js:10982–11045  ·  view source on GitHub ↗

* Copy struct (shallow copy) * @this {!StructNested} * @param {!StructNested} other Other struct * @returns {!StructNested} This struct

(other)

Source from the content-addressed store, hash-verified

10980 * @returns {!StructNested} This struct
10981 */
10982 copy (other) {
10983 super.copy(other)
10984 if (other.f1000 != null) {
10985 this.f1000 = EnumSimple.fromObject(other.f1000)
10986 } else {
10987 this.f1000 = undefined
10988 }
10989 if (other.f1001 != null) {
10990 this.f1001 = EnumSimple.fromObject(other.f1001)
10991 } else {
10992 this.f1001 = undefined
10993 }
10994 if (other.f1002 != null) {
10995 this.f1002 = EnumTyped.fromObject(other.f1002)
10996 } else {
10997 this.f1002 = undefined
10998 }
10999 if (other.f1003 != null) {
11000 this.f1003 = EnumTyped.fromObject(other.f1003)
11001 } else {
11002 this.f1003 = undefined
11003 }
11004 if (other.f1004 != null) {
11005 this.f1004 = FlagsSimple.fromObject(other.f1004)
11006 } else {
11007 this.f1004 = undefined
11008 }
11009 if (other.f1005 != null) {
11010 this.f1005 = FlagsSimple.fromObject(other.f1005)
11011 } else {
11012 this.f1005 = undefined
11013 }
11014 if (other.f1006 != null) {
11015 this.f1006 = FlagsTyped.fromObject(other.f1006)
11016 } else {
11017 this.f1006 = undefined
11018 }
11019 if (other.f1007 != null) {
11020 this.f1007 = FlagsTyped.fromObject(other.f1007)
11021 } else {
11022 this.f1007 = undefined
11023 }
11024 if (other.f1008 != null) {
11025 this.f1008 = StructSimple.fromObject(other.f1008)
11026 } else {
11027 this.f1008 = undefined
11028 }
11029 if (other.f1009 != null) {
11030 this.f1009 = StructSimple.fromObject(other.f1009)
11031 } else {
11032 this.f1009 = undefined
11033 }
11034 if (other.f1010 != null) {
11035 this.f1010 = StructOptional.fromObject(other.f1010)
11036 } else {
11037 this.f1010 = undefined
11038 }
11039 if (other.f1011 != null) {

Callers

nothing calls this directly

Calls 2

copyMethod · 0.45
fromObjectMethod · 0.45

Tested by

no test coverage detected