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

Method name

packages/effect/src/encoding/Xml.ts:2150–2154  ·  view source on GitHub ↗
(s: string, i: number, end: number)

Source from the content-addressed store, hash-verified

2148
2149 // Returns the end of the name that is required at `i`
2150 private name(s: string, i: number, end: number): number {
2151 const nameEnd = scanName(s, i, end)
2152 if (nameEnd === i) throw this.syntax("expected a name", i)
2153 return nameEnd
2154 }
2155
2156 // Reads the quoted literal at `i`, and sets `literalEnd` to the index after it
2157 private literal(s: string, i: number, end: number): string {

Callers 3

doctypeDeclarationMethod · 0.95
GetUserClass · 0.45
GetNameClass · 0.45

Calls 2

syntaxMethod · 0.95
scanNameFunction · 0.85

Tested by

no test coverage detected