Skip to content

decorators field is not present on ClassPrivateProperty in type declarations or documentation, but is in AST #10065

@jhpratt

Description

@jhpratt

Bug Report

Current Behavior
Neither type declarations nor documentation indicate the presence of a decorators field on a ClassPrivateProperty node, while it is present in the AST.

Input Code
AST explorer

class Foo {
  @Decorator
  #prop = '';
}

Expected behavior/code
The decorators field should be present in both documentation and type declarations.

Babel Configuration (.babelrc, package.json, cli command)
Just needs private class fields and decorators enabled, as indicated by link above.

Environment

  • Babel version(s): v7.4.0
  • Node/npm version: Node 12.0.0, npm 6.9.0
  • OS: Ubuntu 19.04
  • Monorepo: no
  • How you are using Babel: CLI

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions