Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
388
func
(s *Scanner) SetText(text string) {
389
s.text = text
390
s.end = len(text)
391
s.ScannerState = ScannerState{}
392
}
393
394
func
(s *Scanner) SetOnError(errorCallback ErrorCallback) {
395
s.onError = errorCallback
Callers
8
createCompletionItem
Method · 0.95
isValidBigIntString
Function · 0.95
TestScanStringPreservesLoneSurrogates
Function · 0.95
newFormattingScanner
Function · 0.95
isNewGroup
Function · 0.80
checkGrammarRegularExpressionLiteral
Method · 0.80
initializeState
Method · 0.80
parseJSDocComment
Method · 0.80
Calls
1
len
Function · 0.85
Tested by
1
TestScanStringPreservesLoneSurrogates
Function · 0.76