MCPcopy Index your code
hub / github.com/microsoft/vscode-cpptools / assert

Method assert

Extension/src/Utility/Text/scanner.ts:1005–1010  ·  view source on GitHub ↗
(assertion: boolean, message: string)

Source from the content-addressed store, hash-verified

1003 }
1004
1005 protected assert(assertion: boolean, message: string) {
1006 if (!assertion) {
1007 const p = this.position;
1008 throw new ScannerError(message, p.line, p.column);
1009 }
1010 }
1011}
1012
1013export class ScannerError extends Error {

Callers 15

scanNumberMethod · 0.95
scanHexNumberMethod · 0.95
scanBinaryNumberMethod · 0.95
scanUntilMethod · 0.95
writeToJsonMethod · 0.80
showMessageWindowFunction · 0.80
registerNotificationsMethod · 0.80
registerFileWatcherMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected