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

Method serialize

lib/FileSystemInfo.js:549–564  ·  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

547 * @param {ObjectSerializerContext} context context
548 */
549 serialize({ write }) {
550 write(this._flags);
551 if (this.hasStartTime()) write(this.startTime);
552 if (this.hasFileTimestamps()) write(this.fileTimestamps);
553 if (this.hasFileHashes()) write(this.fileHashes);
554 if (this.hasFileTshs()) write(this.fileTshs);
555 if (this.hasContextTimestamps()) write(this.contextTimestamps);
556 if (this.hasContextHashes()) write(this.contextHashes);
557 if (this.hasContextTshs()) write(this.contextTshs);
558 if (this.hasMissingExistence()) write(this.missingExistence);
559 if (this.hasManagedItemInfo()) write(this.managedItemInfo);
560 if (this.hasManagedFiles()) write(this.managedFiles);
561 if (this.hasManagedContexts()) write(this.managedContexts);
562 if (this.hasManagedMissing()) write(this.managedMissing);
563 if (this.hasChildren()) write(this.children);
564 }
565
566 /**
567 * Restores this instance from the provided deserializer context.

Callers

nothing calls this directly

Calls 14

hasStartTimeMethod · 0.95
hasFileTimestampsMethod · 0.95
hasFileHashesMethod · 0.95
hasFileTshsMethod · 0.95
hasContextTimestampsMethod · 0.95
hasContextHashesMethod · 0.95
hasContextTshsMethod · 0.95
hasMissingExistenceMethod · 0.95
hasManagedItemInfoMethod · 0.95
hasManagedFilesMethod · 0.95
hasManagedContextsMethod · 0.95
hasManagedMissingMethod · 0.95

Tested by

no test coverage detected