Skip to content

accessor_declaration doesn't expose get/set as separate named child #399

@tehKaiN

Description

@tehKaiN

Suppose I have following code in my class:

public Team Team
{
    get => _team;
}

It gets parsed to named children:

|-property_declaration
  |-attribute_list
  | |-attribute
  |   |-identifier: 'Export'
  |-modifier: 'public'
  |-identifier: 'Team'
  |-identifier: 'Team'
  |-accessor_list
    |-accessor_declaration: 'get => _team;'
    | |-arrow_expression_clause: '=> _team'
    |   |-identifier: '_team'

It would be good to have something with get value just before arrow_expression_clause.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions