Skip to content

Commit

Permalink
And ending
Browse files Browse the repository at this point in the history
  • Loading branch information
jakebailey committed Feb 22, 2023
1 parent 170042c commit 131a170
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/compiler/parser.ts
Expand Up @@ -1736,9 +1736,8 @@ namespace Parser {

const statements = parseList(ParsingContext.SourceElements, parseStatement);
Debug.assert(token() === SyntaxKind.EndOfFileToken);
const endOfFileToken = addJSDocComment(parseTokenNode<EndOfFileToken>());
// TODO(jakebailey): this should really be the following, but why isn't the flag set?
// const endOfFileToken = withJSDoc(parseTokenNode<EndOfFileToken>(), hasPrecedingJSDocComment());
const endHasJSDoc = hasPrecedingJSDocComment();
const endOfFileToken = withJSDoc(parseTokenNode<EndOfFileToken>(), endHasJSDoc);

const sourceFile = createSourceFile(fileName, languageVersion, scriptKind, isDeclarationFile, statements, endOfFileToken, sourceFlags, setExternalModuleIndicator);

Expand Down

0 comments on commit 131a170

Please sign in to comment.