MCPcopy Create free account
hub / github.com/Effect-TS/effect / checkSize

Method checkSize

packages/effect/src/encoding/Xml.ts:1706–1710  ·  view source on GitHub ↗
(i: number, end: number)

Source from the content-addressed store, hash-verified

1704 }
1705
1706 private checkSize(i: number, end: number): void {
1707 if (end - i > this.maxTokenSize) {
1708 throw this.tokenLimit(this.base + i)
1709 }
1710 }
1711
1712 private startTag(s: string, i: number): number {
1713 const n = s.length

Callers 7

parseMethod · 0.95
startTagMethod · 0.95
endTagMethod · 0.95
commentMethod · 0.95
processingInstructionMethod · 0.95
declarationMethod · 0.95
doctypeDeclarationMethod · 0.95

Calls 1

tokenLimitMethod · 0.95

Tested by

no test coverage detected