You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
What version of TypeScript are you using?
2.3.2
What version of
typescript-eslint-parser
are you using?a294afa
What code were you trying to parse?
What did you expect to happen?
I expected an AST indicating that these literals are part of a Directive Prologue.
What happened?
The AST doesn't differentiate between directive literals and non-directive literals. For example:
typescript-eslint-parser/tests/fixtures/ast/Tolerant-parse.json
Lines 4104 to 4167 in f5fcc87
For comparison, here are some other ASTs for
"octal directive"
, both of which indicate that the literal is a directive:Discovered in prettier/prettier#1560 (comment)
The text was updated successfully, but these errors were encountered: