Allowed comment directives to be multiline

This commit is contained in:
Josh Goldberg
2020-04-28 04:27:38 -04:00
parent b346f5764e
commit 956ac2132a
7 changed files with 196 additions and 53 deletions
+30 -14
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -474,7 +474,7 @@ namespace ts {
export function createCommentDirectivesMap(sourceFile: SourceFile, commentDirectives: CommentDirective[]): CommentDirectivesMap {
const directivesByLine = createMapFromEntries(
commentDirectives.map(commentDirective => ([
`${getLineAndCharacterOfPosition(sourceFile, commentDirective.range.pos).line}`,
`${getLineAndCharacterOfPosition(sourceFile, commentDirective.range.end).line}`,
commentDirective,
]))
);