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.
Summary: Set up some new syntax in the NodeKind macro to allow specifying parents of Node kinds, as well as constraints on each of their children. A new `validate` function handles validating a Node and its children. It returns a `bool` to indicate the failure to validate. This can be used in conjunction with a visitor to recursively validate an entire AST. Reviewed By: tmikov Differential Revision: D30081493 fbshipit-source-id: d9a5c6beb14b07589e5977a96e3aef3baf582e09
- Loading branch information
1 parent
6837c26
commit 55dbb01
Showing
3 changed files
with
174 additions
and
12 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