forked from hhvm/hhast
-
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.
Add syntax example for <<__Native>> functions
`function foo();` is no longer valid - except if there's a `<<__Native>>`, so it's no longer in Hack or HHVM's unit tests. It's needed for generating docs.hhvm.com though While I'm here: - it's invalid hack outside of builtins, so make the typechecker ignore all SyntaxExample files. we only need them to parser, we don't need them to typecheck - similarly, don't check for `hhvm -l` errors on syntax examples; if we've explicitly added them, we assume they're wanted, even if `hhvm -l` complains - remove other example that no longer parses at all
- Loading branch information
1 parent
4016b04
commit 51987c2
Showing
3 changed files
with
9 additions
and
5 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