MCPcopy Create free account
hub / github.com/nodejs/llhttp / spanEnd

Method spanEnd

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

Source from the content-addressed store, hash-verified

199 }
200
201 private spanEnd(name: SpanName, otherwise?: Node): Node {
202 let res: Node;
203 if (this.spanTable.has(name)) {
204 res = this.spanTable.get(name)!.end();
205 } else {
206 res = this.llparse.node('span_end_stub_' + name);
207 }
208 if (otherwise !== undefined) {
209 res.otherwise(otherwise);
210 }
211 return res;
212 }
213
214 private node(name: string): Match {
215 const res = this.llparse.node('url_' + name);

Callers 2

buildMethod · 0.95
endToMethod · 0.95

Calls 1

nodeMethod · 0.45

Tested by

no test coverage detected