Skip to content

Commit

Permalink
update schema, compatible versions
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Mar 16, 2021
1 parent 02d0194 commit ae52100
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 13 deletions.
6 changes: 5 additions & 1 deletion codegen/inferred_relationships.hack

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion codegen/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 60 additions & 1 deletion codegen/syntax/FunctionCallExpression.hack

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions codegen/version.hack

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ final class AddXHPChildrenDeclarationMethodMigration
]),
),
$generics,
null,
new LeftParenToken(null, null),
C\is_empty($arguments)
? null
Expand Down
9 changes: 3 additions & 6 deletions src/__Private/is_compatible_schema_version.hack
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use const Facebook\HHAST\SCHEMA_VERSION;
*/
function is_compatible_schema_version(string $other_version): bool {
invariant(
SCHEMA_VERSION === '2021-02-21-0001',
SCHEMA_VERSION === '2021-03-10-0001',
'%s needs updating',
__FILE__,
);
Expand All @@ -31,11 +31,8 @@ function is_compatible_schema_version(string $other_version): bool {

// Return true if $other_version is a subset of SCHEMA_VERSION
switch ($other_version) {
case '2021-03-08-0001': // identical to 2021-02-21-0001
case '2021-02-02-0001': // doesn't have readonly lambda param/return type
case '2021-02-01-0001': // identical to 2021-02-02-0001
case '2021-01-22-0001': // identical to 2021-02-02-0001 and 2021-02-01-0001
case '2021-01-21-0001': // doesn't have ReadonlyToken
case '2021-03-08-0001': // function calls do not have enum atom
case '2021-02-21-0001': // identical to 2021-03-08-0001
return true;
default:
return false;
Expand Down

0 comments on commit ae52100

Please sign in to comment.