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

Method SetText

internal/scanner/scanner.go:388–392  ·  view source on GitHub ↗
(text string)

Source from the content-addressed store, hash-verified

386}
387
388func (s *Scanner) SetText(text string) {
389 s.text = text
390 s.end = len(text)
391 s.ScannerState = ScannerState{}
392}
393
394func (s *Scanner) SetOnError(errorCallback ErrorCallback) {
395 s.onError = errorCallback

Callers 8

createCompletionItemMethod · 0.95
isValidBigIntStringFunction · 0.95
newFormattingScannerFunction · 0.95
isNewGroupFunction · 0.80
initializeStateMethod · 0.80
parseJSDocCommentMethod · 0.80

Calls 1

lenFunction · 0.85

Tested by 1