nushell/crates
Leonhard Kipp c6fe58467b
Change alias shape inference to proposal of RFC#4 (#2685)
* Change alias shape inference to proposal of RFC#4

* Remove commented code

* Fix typo

* Change comment to be more informative

* Make match statement to lookup in table

* Remove resolved question

https://github.com/nushell/nushell/pull/2685#discussion_r509832054

* Pick ...or_insert_dependency functions into pieces

Previously there was get_shape_of_expr_or_insert dependency, now there is
get_shape_of_expr and get_shape_of_expr_or_insert_dependency

2 new functions have been added: get_result_shape_of_math_expr and
get_result_shape_of_math_expr_or_insert_dependency

* Remove flattening of deep binary expressions

Previously deep binary expressions have been flattened through the insertion of
fake vars. This logic was quite complicated. Now if a variable depends on the
result shape of a binary expression and the result shape can't be computed,
the variable simply depends on the whole binary.

* Change Expression::Variable(Variable::It(...)) to Expression::Variable(...)

* Simplify get_result_shapes_in_math_expr

* Simplify infer_shapes_in_binary_expr

* Clarify comment

* Clarify comment

* Fix clippy lint

* Move check for real var into checked_insert

* Remove comment

* Rename var
2020-10-29 06:49:38 +13:00
..
nu_plugin_binaryview bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu_plugin_chart bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu_plugin_fetch bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu_plugin_from_bson bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu_plugin_from_sqlite bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu_plugin_inc bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu_plugin_match bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu_plugin_post bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu_plugin_ps bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu_plugin_s3 bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu_plugin_start bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu_plugin_sys bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu_plugin_textview bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu_plugin_to_bson bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu_plugin_to_sqlite bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu_plugin_tree bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu_plugin_xpath bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu-cli Change alias shape inference to proposal of RFC#4 (#2685) 2020-10-29 06:49:38 +13:00
nu-data Add in parameter inference for blocks (#2706) 2020-10-27 20:37:35 +13:00
nu-errors bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu-parser Improve parameter inference for blocks (#2708) 2020-10-28 07:47:11 +13:00
nu-plugin bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu-protocol Change alias shape inference to proposal of RFC#4 (#2685) 2020-10-29 06:49:38 +13:00
nu-source bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu-table bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu-test-support bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00
nu-value-ext bump to 0.21.1 (#2702) 2020-10-26 21:10:06 +13:00