-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
Fix AvailableA PR has been opened for this issueA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.
Milestone
Description
Bug Report
π Search Terms
auto accessor parsingauto 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.
Metadata
Metadata
Assignees
Labels
Fix AvailableA PR has been opened for this issueA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.