Commit 20410ac
committed
fix: sort program.comments by range[0] after appending Glimmer comments
ESLint's SourceCode.tokensAndComments merge and createIndexMap both
assume comments are sorted by range[0]; appending Glimmer comments after
the TS-parser comments breaks that invariant when a JS block comment
sits between templates, producing wrong results from
getTokenBefore/getTokenAfter on template comments.1 parent ef48542 commit 20410ac
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
0 commit comments