MCPcopy Create free account
hub / github.com/microsoft/vscode-cpptools / tokensFrom

Method tokensFrom

Extension/src/Utility/Text/scanner.ts:998–1003  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

996 }
997
998 static * tokensFrom(text: string): Iterable<Token> {
999 const scanner = new Scanner(text).start();
1000 while (!scanner.eof) {
1001 yield scanner.take();
1002 }
1003 }
1004
1005 protected assert(assertion: boolean, message: string) {
1006 if (!assertion) {

Callers

nothing calls this directly

Calls 2

startMethod · 0.80
takeMethod · 0.80

Tested by

no test coverage detected