Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/microsoft/typescript-go
/ NewScanner
Function
NewScanner
internal/scanner/scanner.go:224–227 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
222
}
223
224
func
NewScanner() *Scanner {
225
s := defaultScanner()
226
return
&s
227
}
228
229
func
(s *Scanner) Reset() {
230
numberCache := cleared(s.numberCache)
Callers
6
groupByNewlineContiguous
Function · 0.92
checkGrammarRegularExpressionLiteral
Method · 0.92
initializeState
Method · 0.92
newFormattingScanner
Function · 0.92
GetScannerForSourceFile
Function · 0.85
TestScanStringPreservesLoneSurrogates
Function · 0.85
Calls
1
defaultScanner
Function · 0.85
Tested by
1
TestScanStringPreservesLoneSurrogates
Function · 0.68