Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Missing parent property for identifiers of scope references #4705

Closed
@DMartens

Description

@DMartens
  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have read the FAQ and my problem is not listed.

Repro

interface Foo {}
interface Bar implements Foo {}

Playground Link

Expected Result
Expected the identifier of the reference of Foo in interface Bar implements Foo to have a parent property.

Actual Result
The identifier of the reference only has the properties type, name, range and loc.

Additional Info
I came across this bug when smoke testing an eslint rule.
When the implements is changed to extends, the reference identifier has a parent property.

Versions

package version
@typescript-eslint/scope-manager 5.15.0
TypeScript 4.6.2
node 17.7.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    package: scope-managerIssues related to @typescript-eslint/scope-managerworking as intendedIssues that are closed as they are working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions