mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Component commits:956ac2132aAllowed comment directives to be multiline12749c9291Added tests, and perhaps fixed a test runner bug?99bb366fd6I think it's going to need a consistent variable to loop overa21477d6acUsed dynamically computed indexes in verifies992441d9b8Added multiline tests199d256ba2Increased flexibility for multiline comment parsing65a7587432Undid a couple of formatting changes; removed backslashes from multiline regexp036a4ae922Merge branch 'master'b620104be2Merge branch 'master' of https://github.com/microsoft/TypeScript into multiline-comment-directives Co-authored-by: Orta Therox <orta.therox@gmail.com>
This commit is contained in:
co-authored by
Orta Therox
parent
90570dfe09
commit
e261cdd2f6
+40
-14
File diff suppressed because one or more lines are too long
@@ -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,
|
||||
]))
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user