MCPcopy Create free account
hub / github.com/microsoft/typescript-go / charAt

Method charAt

internal/scanner/regexp.go:124–126  ·  view source on GitHub ↗
(pos int)

Source from the content-addressed store, hash-verified

122}
123
124func (p *regExpParser) charAt(pos int) rune {
125 return p.scanner.charAt(pos - p.pos())
126}
127
128func (p *regExpParser) error(msg *diagnostics.Message, pos int, length int, args ...any) {
129 p.scanner.errorAt(msg, pos, length, args...)

Callers 2

scanClassSetCharacterMethod · 0.95

Calls 2

posMethod · 0.95
charAtMethod · 0.65

Tested by

no test coverage detected