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 readonly
from ClassProperty #302
Closed
Description
What version of typescript-eslint-parser
are you using?
3dcba7d
What code were you trying to parse?
class Foo {
public readonly foo = 'string';
}
What did you expect to happen?
for ClassProperty to have readonly: true
What happened?
doesn't have readonly
{
"type": "ClassProperty",
"range": [
14,
45
],
"loc": {
"start": {
"line": 2,
"column": 2
},
"end": {
"line": 2,
"column": 33
}
},
"key": {
"type": "Identifier",
"range": [
30,
33
],
"loc": {
"start": {
"line": 2,
"column": 18
},
"end": {
"line": 2,
"column": 21
}
},
"name": "foo"
},
"value": {
"type": "Literal",
"range": [
36,
44
],
"loc": {
"start": {
"line": 2,
"column": 24
},
"end": {
"line": 2,
"column": 32
}
},
"value": "string",
"raw": "'string'"
},
"computed": false,
"static": false,
"accessibility": "public",
"decorators": [],
"typeAnnotation": null
}