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.
Store hashbang comments with unique comment type
Summary: Currently, the Hermes parser stores hashbang comments (comments that begin with `#!` and start at the first byte of the file) as regular line comments. Let's introduce a new `Hashbang` comment type for these comments as they are not actually regular line comments, and so that they can be easily distinguished. This will be used to distinguish these hashbang comments from other line comments in the Hermes parser compiled to WASM. Reviewed By: avp Differential Revision: D24352504 fbshipit-source-id: 653a8c2efd7bd188ee89a64c465905ad2ccdd6ca
- Loading branch information
1 parent
7cf34b6
commit 8f6404a
Showing
3 changed files
with
20 additions
and
4 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