MCPcopy Index your code
hub / github.com/markdoc/markdoc / resolve

Method resolve

src/ast/node.ts:56–67  ·  view source on GitHub ↗
(config: Config = {})

Source from the content-addressed store, hash-verified

54 }
55
56 resolve(config: Config = {}): Node {
57 return Object.assign(new Node(), this, {
58 children: this.children.map((child) => child.resolve(config)),
59 attributes: resolve(this.attributes, config),
60 slots: Object.fromEntries(
61 Object.entries(this.slots).map(([name, slot]) => [
62 name,
63 slot.resolve(config),
64 ])
65 ),
66 });
67 }
68
69 findSchema(config: Config = {}): Schema | undefined {
70 return transformer.findSchema(this, config);

Callers

nothing calls this directly

Calls 2

resolveFunction · 0.90
resolveMethod · 0.65

Tested by

no test coverage detected