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

Method scanHashComment

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

Source from the content-addressed store, hash-verified

824 return this.kind = Kind.SingleLineComment;
825 }
826 private scanHashComment() {
827 this.text = this.scanUntil(isLineBreak);
828 return this.kind = Kind.SingleLineHashComment;
829 }
830 private scanMultiLineComment() {
831 this.text = this.scanUntil((ch, chNext) => ch === CharacterCodes.asterisk && chNext === CharacterCodes.slash, '*/', 2);
832 return this.kind = Kind.MultiLineComment;

Callers 1

scanMethod · 0.95

Calls 1

scanUntilMethod · 0.95

Tested by

no test coverage detected