MCPcopy Index your code
hub / github.com/nodejs/llhttp / spanStart

Method spanStart

src/llhttp/url.ts:188–199  ·  view source on GitHub ↗
(name: SpanName, otherwise?: Node)

Source from the content-addressed store, hash-verified

186 }
187
188 private spanStart(name: SpanName, otherwise?: Node): Node {
189 let res: Node;
190 if (this.spanTable.has(name)) {
191 res = this.spanTable.get(name)!.start();
192 } else {
193 res = this.llparse.node('span_start_stub_' + name);
194 }
195 if (otherwise !== undefined) {
196 res.otherwise(otherwise);
197 }
198 return res;
199 }
200
201 private spanEnd(name: SpanName, otherwise?: Node): Node {
202 let res: Node;

Callers 1

buildMethod · 0.95

Calls 1

nodeMethod · 0.45

Tested by

no test coverage detected