MCPcopy
hub / github.com/webpack/webpack / serialize

Method serialize

lib/Dependency.js:437–445  ·  view source on GitHub ↗

* Serializes this instance into the provided serializer context. * @param {ObjectSerializerContext} context context

({ write })

Source from the content-addressed store, hash-verified

435 * @param {ObjectSerializerContext} context context
436 */
437 serialize({ write }) {
438 write(this.optional);
439 write(this._locSL);
440 write(this._locSC);
441 write(this._locEL);
442 write(this._locEC);
443 write(this._locI);
444 write(this._locN);
445 }
446
447 /**
448 * Restores this instance from the provided deserializer context.

Callers

nothing calls this directly

Calls 1

writeFunction · 0.85

Tested by

no test coverage detected