Use Tuple in lowerer and hackc
commit3349c70bccf8dccbf640654366b8452ab224de36
authorWilfred Hughes <wilfred@fb.com>
Fri, 30 Apr 2021 20:00:50 +0000 (30 13:00 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 30 Apr 2021 20:02:10 +0000 (30 13:02 -0700)
tree87470580e8e687cb61fb205b709e183cf1ec1192
parent9ef2bcb8b59d02b5778ffad0b3a28e8ba4a4618a
Use Tuple in lowerer and hackc

Summary: Now that we have separate AAST nodes for `list()` and `tuple()`, use the `Aast.Tuple` node in the lowerer so the whole toolchain sees `Aast.Tuple`.

Reviewed By: shiqicao

Differential Revision: D27283274

fbshipit-source-id: 1fa5fc2c2626ae5564da3e92f9fd0d15d5d4221a
13 files changed:
hphp/hack/src/hhbc/ast_constant_folder.rs
hphp/hack/src/hhbc/closure_convert.rs
hphp/hack/src/hhbc/emit_expression.rs
hphp/hack/src/hhbc/hhbc_by_ref/ast_constant_folder.rs
hphp/hack/src/hhbc/hhbc_by_ref/emit_expression.rs
hphp/hack/src/hhbc/hhbc_by_ref/print.rs
hphp/hack/src/hhbc/print.rs
hphp/hack/src/naming/naming.ml
hphp/hack/src/naming/naming_special_names.ml
hphp/hack/src/naming/naming_special_names.rs
hphp/hack/src/parser/lowerer/lowerer.rs
hphp/hack/test/typecheck/tuple_as_lvalue.php.exp
hphp/hack/test/typecheck/tuple_rvalue_only.php.exp