forked from facebook/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compute source visibility from directives
Summary: This diff introduced the notion of "source visibility" and 1. add it to ESTree FunctionLikeNode 2. compute the visibility in semantic validator according to the override rule. This is the fundation to implemetn the Stage2 proposal "Function Implementation Hiding": https://github.com/tc39/proposal-function-implementation-hiding, as well as the `'show source'` extension that Hermes is proposing to accomendate the needs of preserving source for `toString` at facebook#114 Note that previously by computing the visibility in semantic validation phase, we can scale this to support external AST and lazy compilation properly. Reviewed By: avp Differential Revision: D26269664 fbshipit-source-id: d4eba4a78c0e41c0cd7d2320fe2a469ba7928d95
- Loading branch information
1 parent
9a001f4
commit 0ee971d
Showing
7 changed files
with
229 additions
and
18 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
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
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
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