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

Method take

Extension/src/Utility/Text/scanner.ts:591–595  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

589 }
590
591 take(): Token {
592 const result = { ...this };
593 this.scan();
594 return result;
595 }
596
597 *takeUntil(endToken: Kind, options?: { escape?: Kind[]; nestable?: [Kind, Kind][] }, yieldFinalClose?: boolean): Iterable<Token> {
598 const nestable = options?.nestable || [];

Callers 4

takeUntilMethod · 0.95
parseFunction · 0.80
addFilterFunction · 0.80
tokensFromMethod · 0.80

Calls 1

scanMethod · 0.95

Tested by

no test coverage detected