Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/basarat/typescript-book
/ runScannerWithPositions.js
File
runScannerWithPositions.js
code/compiler/scanner/runScannerWithPositions.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
var
ts = require(
"ntypescript"
);
2
var
scanner = ts.createScanner(2, true);
3
function
initializeState(text) {
4
scanner.setText(text);
Callers
nothing calls this directly
Calls
2
initializeState
Function · 0.70
log
Method · 0.45
Tested by
no test coverage detected