(Adaptive Loop) Pass 3

(Adaptive Loop) Record freeze commit hash in context manifest
This commit is contained in:
AlexKucera committed 2026-08-13 15:23:35 +02:00
1 parent 72497dcdbe
commit 2c1d0fc4d0
1079 files changed
+1131878

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
'use strict'
let Container = require('./container')
let LazyResult, Processor
class Document extends Container {
constructor(defaults) {
// type needs to be passed to super, otherwise child roots won't be normalized correctly
super({ type: 'document', ...defaults })
if (!this.nodes) {
this.nodes = []
}
}
toResult(opts = {}) {
let lazy = new LazyResult(new Processor(), this, opts)
return lazy.stringify()
}
}
Document.registerLazyResult = dependant => {
LazyResult = dependant
}
Document.registerProcessor = dependant => {
Processor = dependant
}
module.exports = Document
Document.default = Document