MCPcopy Create free account
hub / github.com/angular/angular / end

Method end

packages/compiler-cli/preprocessor/src/perf.ts:322–330  ·  view source on GitHub ↗

Ends the section of `token`, and any section left open inside it.

(token: number)

Source from the content-addressed store, hash-verified

320
321 /** Ends the section of `token`, and any section left open inside it. */
322 private end(token: number): void {
323 if (token < 1 || token > this.openKind.length) {
324 return;
325 }
326 const now = nowMicros();
327 while (this.openKind.length >= token) {
328 this.close(now);
329 }
330 }
331
332 record(kind: SpanKind, startUs: number): void {
333 if (!AWAITING_KINDS[kind]) {

Callers 2

sliceMethod · 0.95
sliceAsyncMethod · 0.95

Calls 2

closeMethod · 0.95
nowMicrosFunction · 0.85

Tested by

no test coverage detected