This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
Missing static from TSParameterProperty #286
Closed
Description
What version of typescript-eslint-parser
are you using?
b7220fd
What code were you trying to parse?
// ../TypeScript/tests/cases/compiler/constructorArgsErrors1.ts
class foo {
constructor(static a: number) {}
}
What did you expect to happen?
Have static: true
inside of TSParameterProperty
What happened?
Doesn't have it
{
"type": "TSParameterProperty",
"range": [
30,
46
],
"loc": {
"start": {
"line": 2,
"column": 17
},
"end": {
"line": 2,
"column": 33
}
},
"accessibility": null,
"isReadonly": false,
"parameter": {
"type": "Identifier",
"range": [
37,
38
],
"loc": {
"start": {
"line": 2,
"column": 24
},
"end": {
"line": 2,
"column": 25
}
},
"name": "a",
"typeAnnotation": {
"type": "TypeAnnotation",
"loc": {
"start": {
"line": 2,
"column": 27
},
"end": {
"line": 2,
"column": 33
}
},
"range": [
40,
46
],
"typeAnnotation": {
"type": "TSNumberKeyword",
"range": [
40,
46
],
"loc": {
"start": {
"line": 2,
"column": 27
},
"end": {
"line": 2,
"column": 33
}
}
}
}
},
"decorators": []
}