Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Issue 2949753002: Print static types of conditional expressions. (Closed)

Created:
3 years, 6 months ago by Paul Berry
Modified:
3 years, 6 months ago
CC:
reviews_dartlang.org, dart-fe-team+reviews_google.com
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Print static types of conditional expressions. I want to start testing that Fasta sets the static types of conditional expressions correctly, so I need Fasta's expectations files to include them. This CL just adds the static types to the printing logic in ast_to_text.dart and updates expectations so that the tests continue to pass. I will make behavioral changes to Fasta in future CLs. R=kmillikin@google.com Committed: https://github.com/dart-lang/sdk/commit/1594006758c40688c466b4e93ea49c31ab53a78d

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+846 lines, -957 lines) Patch
M pkg/front_end/testcases/call.dart.strong.expect View 3 chunks +4 lines, -9 lines 0 comments Download
M pkg/front_end/testcases/escape.dart.direct.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/expressions.dart.direct.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference/conditional_lub.dart.direct.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/inference/conditional_lub.dart.strong.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/inference/conditional_upwards_inference.dart.direct.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference/conditional_upwards_inference.dart.strong.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference/future_then_conditional.dart.strong.expect View 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/front_end/testcases/inference/future_then_conditional_2.dart.strong.expect View 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/front_end/testcases/inference/future_then_conditional_3.dart.strong.expect View 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/front_end/testcases/inference/future_then_conditional_4.dart.strong.expect View 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/front_end/testcases/inference/future_then_conditional_5.dart.strong.expect View 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/front_end/testcases/inference/future_then_conditional_6.dart.strong.expect View 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/front_end/testcases/inference/future_union_async_conditional.dart.strong.expect View 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/front_end/testcases/inference/future_union_async_conditional_2.dart.strong.expect View 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_implicit_this.dart.direct.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_implicit_this.dart.strong.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_implicit_this_upwards.dart.direct.expect View 3 chunks +7 lines, -7 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_implicit_this_upwards.dart.strong.expect View 3 chunks +7 lines, -7 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_index_full.dart.direct.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_index_full.dart.strong.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_index_set_vs_get.dart.direct.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_index_set_vs_get.dart.strong.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_index_super.dart.direct.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_index_super.dart.strong.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_index_super_upwards.dart.direct.expect View 9 chunks +21 lines, -21 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_index_super_upwards.dart.strong.expect View 9 chunks +21 lines, -21 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_index_this.dart.direct.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_index_this.dart.strong.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_index_this_upwards.dart.direct.expect View 9 chunks +21 lines, -21 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_index_this_upwards.dart.strong.expect View 9 chunks +21 lines, -21 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_index_upwards.dart.direct.expect View 9 chunks +21 lines, -21 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_index_upwards.dart.strong.expect View 9 chunks +21 lines, -21 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_local.dart.direct.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_local.dart.strong.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_local_upwards.dart.direct.expect View 3 chunks +7 lines, -7 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_local_upwards.dart.strong.expect View 3 chunks +7 lines, -7 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_property_full.dart.direct.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_property_full.dart.strong.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_property_null_aware.dart.direct.expect View 1 chunk +14 lines, -14 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_property_null_aware.dart.strong.expect View 1 chunk +14 lines, -14 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_property_null_aware_upwards.dart.direct.expect View 3 chunks +28 lines, -28 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_property_null_aware_upwards.dart.strong.expect View 3 chunks +28 lines, -28 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_property_super.dart.direct.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_property_super.dart.strong.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_property_super_upwards.dart.direct.expect View 3 chunks +7 lines, -7 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_property_super_upwards.dart.strong.expect View 3 chunks +7 lines, -7 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_property_upwards.dart.direct.expect View 3 chunks +7 lines, -7 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_property_upwards.dart.strong.expect View 3 chunks +7 lines, -7 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_static.dart.direct.expect View 2 chunks +4 lines, -4 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_static.dart.strong.expect View 2 chunks +4 lines, -4 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_static_upwards.dart.direct.expect View 3 chunks +7 lines, -7 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_assign_to_static_upwards.dart.strong.expect View 3 chunks +7 lines, -7 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_conditional.dart.strong.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/inference/infer_throw.dart.strong.expect View 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/front_end/testcases/inference/null_aware_property_get.dart.direct.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference/null_aware_property_get.dart.strong.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference/null_coalescing_operator.dart.dartk.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference/null_coalescing_operator.dart.strong.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference/null_coalescing_operator_2.dart.dartk.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference/null_coalescing_operator_2.dart.strong.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference_new/infer_instance_accessor_ref.dart.direct.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference_new/infer_instance_accessor_ref.dart.strong.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference_new/infer_instance_field_ref.dart.direct.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference_new/infer_instance_field_ref.dart.strong.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference_new/strongly_connected_component.dart.direct.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference_new/strongly_connected_component.dart.strong.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/micro.dart.direct.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/micro.dart.strong.expect View 2 chunks +8 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/null_aware.dart.direct.expect View 1 chunk +7 lines, -7 lines 0 comments Download
M pkg/front_end/testcases/optional.dart.direct.expect View 2 chunks +7 lines, -7 lines 0 comments Download
M pkg/front_end/testcases/optional.dart.strong.expect View 3 chunks +11 lines, -11 lines 0 comments Download
M pkg/front_end/testcases/override.dart.direct.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/override.dart.strong.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/rasta/bad_constructor_redirection.dart.direct.expect View 1 chunk +2 lines, -1 line 0 comments Download
M pkg/front_end/testcases/rasta/bad_default_constructor.dart.direct.expect View 1 chunk +2 lines, -14 lines 0 comments Download
M pkg/front_end/testcases/rasta/bad_explicit_super_constructor.dart.direct.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/rasta/bad_implicit_super_constructor.dart.direct.expect View 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/front_end/testcases/rasta/bad_redirection.dart.direct.expect View 1 chunk +3 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/rasta/bad_setter_initializer.dart.direct.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/rasta/bad_unicode.dart.direct.expect View 1 chunk +2 lines, -4 lines 0 comments Download
M pkg/front_end/testcases/rasta/breaking_bad.dart.direct.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/rasta/class_hierarchy.dart.direct.expect View 1 chunk +13 lines, -8 lines 0 comments Download
M pkg/front_end/testcases/rasta/deferred_load.dart.direct.expect View 1 chunk +3 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/rasta/duplicated_mixin.dart.direct.expect View 1 chunk +3 lines, -11 lines 0 comments Download
M pkg/front_end/testcases/rasta/issue_000031.dart.direct.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/rasta/issue_000032.dart.direct.expect View 1 chunk +1 line, -6 lines 0 comments Download
M pkg/front_end/testcases/rasta/issue_000034.dart.direct.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/rasta/issue_000035.dart.direct.expect View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/front_end/testcases/rasta/issue_000035a.dart.direct.expect View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/front_end/testcases/rasta/issue_000036.dart.direct.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/rasta/issue_000039.dart.direct.expect View 1 chunk +2 lines, -10 lines 0 comments Download
M pkg/front_end/testcases/rasta/issue_000041.dart.direct.expect View 1 chunk +5 lines, -3 lines 0 comments Download
M pkg/front_end/testcases/rasta/issue_000044.dart.direct.expect View 1 chunk +10 lines, -8 lines 0 comments Download
M pkg/front_end/testcases/rasta/issue_000045.dart.direct.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/rasta/issue_000046.dart.direct.expect View 1 chunk +2 lines, -6 lines 0 comments Download
M pkg/front_end/testcases/rasta/issue_000047.dart.direct.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/rasta/malformed_const_constructor.dart.direct.expect View 1 chunk +2 lines, -9 lines 0 comments Download
M pkg/front_end/testcases/rasta/malformed_function.dart.direct.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/rasta/mixin_library.dart.direct.expect View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/rasta/native_is_illegal.dart.direct.expect View 1 chunk +11 lines, -10 lines 0 comments Download
M pkg/front_end/testcases/rasta/parser_error.dart.direct.expect View 1 chunk +2 lines, -7 lines 0 comments Download
M pkg/front_end/testcases/rasta/static.dart.direct.expect View 1 chunk +10 lines, -10 lines 0 comments Download
M pkg/front_end/testcases/rasta/super.dart.direct.expect View 5 chunks +180 lines, -176 lines 0 comments Download
M pkg/front_end/testcases/rasta/super_mixin.dart.direct.expect View 1 chunk +21 lines, -92 lines 0 comments Download
M pkg/front_end/testcases/rasta/super_operator.dart.direct.expect View 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/front_end/testcases/rasta/type_literals.dart.direct.expect View 1 chunk +66 lines, -66 lines 0 comments Download
M pkg/front_end/testcases/rasta/type_with_parse_error.dart.direct.expect View 1 chunk +2 lines, -15 lines 0 comments Download
M pkg/front_end/testcases/rasta/typedef.dart.direct.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/rasta/unresolved_for_in.dart.direct.expect View 2 chunks +19 lines, -13 lines 0 comments Download
M pkg/front_end/testcases/rasta/unresolved_recovery.dart.direct.expect View 1 chunk +2 lines, -16 lines 0 comments Download
M pkg/front_end/testcases/super_rasta_copy.dart.direct.expect View 1 chunk +22 lines, -22 lines 0 comments Download
M pkg/front_end/testcases/type_variable_as_super.dart.direct.expect View 1 chunk +3 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/void-methods.dart.direct.expect View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/void-methods.dart.strong.expect View 1 chunk +4 lines, -4 lines 0 comments Download
M pkg/kernel/lib/text/ast_to_text.dart View 2 chunks +12 lines, -1 line 0 comments Download

Messages

Total messages: 9 (3 generated)
Paul Berry
3 years, 6 months ago (2017-06-20 02:51:51 UTC) #2
Paul Berry
Note: the only substantial change is in pkg/kernel/lib/text/ast_to_text.dart. Everything else is just modifications to expectations ...
3 years, 6 months ago (2017-06-20 02:52:17 UTC) #3
Paul Berry
Kevin, can you take a look since Peter is on vacation?
3 years, 6 months ago (2017-06-20 12:11:00 UTC) #5
Kevin Millikin (Google)
I would prefer a notation that generalized in an obvious way to other expressions, because ...
3 years, 6 months ago (2017-06-20 13:14:11 UTC) #6
Paul Berry
On 2017/06/20 13:14:11, Kevin Millikin (Google) wrote: > I would prefer a notation that generalized ...
3 years, 6 months ago (2017-06-20 14:28:58 UTC) #7
Paul Berry
3 years, 6 months ago (2017-06-20 14:34:01 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
1594006758c40688c466b4e93ea49c31ab53a78d (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698