Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Currently, we're using a mixture of snake_case, lowerCamelCase, and dash-case in different situations. It's probably best to use only a single one of those styles, so as to avoid confusing the consumers of the API. I chose snake_case because it already has precedence, given the JSON output of the full-fidelity parser, and it's also usable for identifiers in code (unlike dash-case in Hack or Flow). Differential Revision: D7717960 fbshipit-source-id: 4c5a5b75d1267d75980ccdafbfe6cace1c371f8c
- Loading branch information
Showing
6 changed files
with
21 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"patternType": "node-pattern", | ||
"pattern_type": "node_pattern", | ||
"kind": "methodish_declaration", | ||
"children": { | ||
"foo": { | ||
"patternType": "match-pattern" | ||
"pattern_type": "match_pattern" | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"patternType": "node-pattern", | ||
"pattern_type": "node_pattern", | ||
"kind": "foo", | ||
"children": {} | ||
} |