MCPcopy Create free account
hub / github.com/mapbox/pbf / writeContext

Function writeContext

compile.js:16–23  ·  view source on GitHub ↗
(ctx, options)

Source from the content-addressed store, hash-verified

14}
15
16function writeContext(ctx, options) {
17 let code = '';
18 if (ctx._proto.fields) code += writeMessage(ctx, options);
19 if (ctx._proto.values) code += writeEnum(ctx, options);
20
21 for (const child of ctx._children) code += writeContext(child, options);
22 return code;
23}
24
25function writeMessage(ctx, options) {
26 const fields = ctx._proto.fields;

Callers 1

compileRawFunction · 0.85

Calls 2

writeMessageFunction · 0.85
writeEnumFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…