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

Function defaultScanner

internal/scanner/scanner.go:217–222  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215}
216
217func defaultScanner() Scanner {
218 // Using a function rather than a global is intentional; this function is
219 // inlined as pure code (zeroing + moves), whereas a global requires write
220 // barriers since the memory is mutable.
221 return Scanner{skipTrivia: true}
222}
223
224func NewScanner() *Scanner {
225 s := defaultScanner()

Callers 2

NewScannerFunction · 0.85
ResetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected