This repository was archived by the owner on Jan 19, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 75
Missing static from TSParameterProperty #286
Labels
Comments
Actually, i'm not really sure what's going on here. The ast difference is: ../TypeScript/tests/cases/compiler/constructorArgsErrors1.ts
: ast(input) !== ast(prettier(input))
Index:
===================================================================
---
+++
@@ -18,15 +18,10 @@
"params": [
{
- "type": "TSParameterProperty",
- "accessibility": null,
- "isReadonly": false,
- "parameter": {
- "type": "Identifier",
- "name": "a",
+ "type": "Identifier",
+ "name": "a",
+ "typeAnnotation": {
+ "type": "TypeAnnotation",
"typeAnnotation": {
- "type": "TypeAnnotation",
- "typeAnnotation": {
- "type": "TSNumberKeyword"
- }
+ "type": "TSNumberKeyword"
}
}, I don't think that it's actually valid to have static there. |
Good catch thanks. Should be a simple fix, just need to check for static modifier. Typescript does complain: |
constructor (export a: number) { has the same issue fyi. |
soda0289
added a commit
that referenced
this issue
May 28, 2017
soda0289
added a commit
that referenced
this issue
May 28, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of
typescript-eslint-parser
are you using?b7220fd
What code were you trying to parse?
What did you expect to happen?
Have
static: true
inside ofTSParameterProperty
What happened?
Doesn't have it
The text was updated successfully, but these errors were encountered: