Skip to content

JS: Improve support for getters and instance members in API graphs #8602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 9 commits into from

Conversation

asgerf
Copy link
Contributor

@asgerf asgerf commented Mar 30, 2022

  1. When an object with a getter escapes into a library we didn't generate member edges for that getter.
  2. When an instance of a class escapes into a library, we didn't generate member edges for the instance members of that class (neither methods nor accessors).
  3. Same for static classes and static members, though for a different reason.

For now, this PR does not implement setters, just getters.

I suspect my solution to 2 is too naive and will generate a lot of API graph edges (one for each instance member at every point where the class instance escapes), but we'll see.

@asgerf asgerf added JS Awaiting evaluation Do not merge yet, this PR is waiting for an evaluation to finish labels Mar 30, 2022
@asgerf asgerf force-pushed the js/api-graph-accessors branch from 1147bab to 412f3b0 Compare March 30, 2022 09:34
@asgerf asgerf force-pushed the js/api-graph-accessors branch 2 times, most recently from 2bd46cd to c400623 Compare April 7, 2022 10:52
@asgerf asgerf force-pushed the js/api-graph-accessors branch from c400623 to 29d21b7 Compare April 7, 2022 12:22
@asgerf
Copy link
Contributor Author

asgerf commented May 4, 2022

Everything but the last commit was moved to #8791. Will open a new PR with the last commit alone.

@asgerf asgerf closed this May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting evaluation Do not merge yet, this PR is waiting for an evaluation to finish JS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant