Files
angular/packages/compiler-cli
Shuaib Hasan Akib 01949c53a6 fix(compiler-cli): don't mark constructor parameter properties as inherited
A member was considered inherited when its declaration's parent was not
the class being extracted. A public constructor parameter property
(`constructor(public snapshot: ActivatedRouteSnapshot) {}`) is extracted
as a property, but its declaration is a parameter whose parent is the
constructor rather than the class, so the check always matched and every
such member was tagged as inherited.

In the API reference that tag is rendered as `override`, which produced
class signatures like:

  class ActivationStart {
    constructor(snapshot: ActivatedRouteSnapshot);
    override snapshot: ActivatedRouteSnapshot;
  }

even though the class doesn't extend anything.

The check now resolves a parameter property to the class declaring its
constructor, so only members actually coming from a parent class keep
the inherited tag.

(cherry picked from commit 8dd33e726b)
2026-10-02 18:56:37 +00:00
..