File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -8766,9 +8766,6 @@ namespace Parser {
8766
8766
}
8767
8767
8768
8768
function parseJSDocCommentWorker(start = 0, length: number | undefined): JSDoc | undefined {
8769
- const saveParsingContext = parsingContext;
8770
- parsingContext |= 1 << ParsingContext.JSDocComment;
8771
-
8772
8769
const content = sourceText;
8773
8770
const end = length === undefined ? content.length : start + length;
8774
8771
length = end - start;
@@ -8790,6 +8787,9 @@ namespace Parser {
8790
8787
let comments: string[] = [];
8791
8788
const parts: JSDocComment[] = [];
8792
8789
8790
+ const saveParsingContext = parsingContext;
8791
+ parsingContext |= 1 << ParsingContext.JSDocComment;
8792
+
8793
8793
// + 3 for leading /**, - 5 in total for /** */
8794
8794
const result = scanner.scanRange(start + 3, length - 5, doJSDocScan);
8795
8795
parsingContext = saveParsingContext;
You can’t perform that action at this time.
0 commit comments