Bug Report
π Search Terms
auto accessor parsing
auto accessor newline
π Version & Regression Information
- I was unable to test this on prior versions because auto accessor syntax is landed in 4.9__
β― Playground Link
Playground link with relevant code
π» Code
class Foo {
accessor
foo
}
π Actual behavior
TypeScript compiler parses the input code to:
// pseudo AST
{
type: class
children: [
accessor property ( name = "foo" )
]
}
π Expected behavior
TypeScript compiler parses the input code to:
// pseudo AST
{
type: class
children: [
property ( name = "accessor" ),
property ( name = "foo" )
]
}
I've reported to babel/babel (babel/babel#15238), but the bug seemed to be in the TS.
Bug Report
π Search Terms
auto accessor parsingauto accessor newlineπ Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
TypeScript compiler parses the input code to:
π Expected behavior
TypeScript compiler parses the input code to:
I've reported to
babel/babel(babel/babel#15238), but the bug seemed to be in the TS.