Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For types defined using CLASS, use the MEMBER_FUNCTION_DEF of "constr…
…uctor", rather than the CLASS node, as the definition node of the type's "constructor" property. This change makes it possible to lookup JSDoc attached to the CLASS and "constructor" separately. Such distinction is a prerequisite for separate handling for class/constructor access-controls. Additionally, literal accesses to "constructor" properties (e.g. `Foo.prototype.constructor`, `foo.constructor`) will become subject to access controls following this change. Previously, they had been subject to the same controls as the class itself by dint of using the same JSDoc. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=209617028
- Loading branch information
Showing
2 changed files
with
81 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters