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

Issue 2967923002: Use type variables on Typedef correctly. (Closed)

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

Description

Patch Set 1 #

Patch Set 2 : Move constants to left-hand side of ==. #

Patch Set 3 : Rebased on fdd10731739d1b7391458ef63f6c96d6f4c6d7b8. #

Patch Set 4 : Update expectations. #

Total comments: 2

Patch Set 5 : Fix NPE and change compile-time error to warning. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -139 lines) Patch
M pkg/front_end/lib/src/fasta/builder/function_type_alias_builder.dart View 2 chunks +3 lines, -12 lines 0 comments Download
M pkg/front_end/lib/src/fasta/dill/dill_typedef_builder.dart View 1 chunk +8 lines, -12 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart View 1 2 3 4 2 chunks +22 lines, -20 lines 3 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart View 2 chunks +31 lines, -38 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart View 3 chunks +6 lines, -5 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_type_variable_builder.dart View 1 2 3 4 2 chunks +6 lines, -5 lines 1 comment Download
M pkg/front_end/lib/src/fasta/source/outline_builder.dart View 5 chunks +38 lines, -23 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/source_library_builder.dart View 1 chunk +1 line, -2 lines 0 comments Download
M pkg/front_end/test/subpackage_relationships_test.dart View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M pkg/front_end/testcases/covariant_generic.dart.direct.expect View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/covariant_generic.dart.outline.expect View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference/constructors_infer_from_arguments_argument_not_assignable.dart.strong.expect View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference/downward_inference_miscellaneous.dart.strong.expect View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference/downwards_inference_annotations_type_variable.dart.direct.expect View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference/downwards_inference_annotations_type_variable.dart.outline.expect View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference/downwards_inference_initializing_formal_default_formal.dart.strong.expect View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference/downwards_inference_on_function_expressions.dart.strong.expect View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference/downwards_inference_on_list_literals_infer_if_value_types_match_context.dart.strong.expect View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/testcases/inference/generic_methods_infer_generic_function_parameter_type.dart.strong.expect View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference/generic_methods_infer_generic_function_parameter_type2.dart.strong.expect View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference/generic_methods_infer_generic_function_return_type.dart.strong.expect View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference/inferred_type_is_typedef_parameterized.dart.strong.expect View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M pkg/kernel/lib/binary/ast_to_binary.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M tests/co19/co19-kernel.status View 1 chunk +0 lines, -2 lines 0 comments Download
M tests/language/language_kernel.status View 2 chunks +0 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 13 (3 generated)
ahe
Initially, when I implemented typedefs, I implemented them incorrectly (not based on a single function ...
3 years, 5 months ago (2017-07-04 12:26:53 UTC) #2
ahe
Sorry, I forgot to update expectations. I've uploaded a new patch set.
3 years, 5 months ago (2017-07-04 13:50:23 UTC) #4
Johnni Winther
lgtm
3 years, 5 months ago (2017-07-04 14:07:39 UTC) #5
Paul Berry
lgtm https://codereview.chromium.org/2967923002/diff/80001/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart File pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart (right): https://codereview.chromium.org/2967923002/diff/80001/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart#newcode47 pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart:47: if (formal.isRequired) requiredParameterCount++; If the constraints on parameter ...
3 years, 5 months ago (2017-07-04 14:48:03 UTC) #6
ahe
Thank you, Paul and Johnni! https://codereview.chromium.org/2967923002/diff/80001/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart File pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart (right): https://codereview.chromium.org/2967923002/diff/80001/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart#newcode47 pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart:47: if (formal.isRequired) requiredParameterCount++; On ...
3 years, 5 months ago (2017-07-04 16:26:09 UTC) #7
ahe
I found some additional issues during testing. PTAL
3 years, 5 months ago (2017-07-05 07:41:39 UTC) #8
ahe
I don't know why this test wasn't on my short list already, it must have ...
3 years, 5 months ago (2017-07-05 07:55:24 UTC) #9
Johnni Winther
lgtm https://codereview.chromium.org/2967923002/diff/100001/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart File pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart (right): https://codereview.chromium.org/2967923002/diff/100001/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart#newcode62 pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart:62: DartType builtType = type?.build(library) ?? const DynamicType(); On ...
3 years, 5 months ago (2017-07-05 10:35:58 UTC) #10
ahe
Thank you, Johnni and Paul! https://codereview.chromium.org/2967923002/diff/100001/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart File pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart (right): https://codereview.chromium.org/2967923002/diff/100001/pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart#newcode62 pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart:62: DartType builtType = type?.build(library) ...
3 years, 5 months ago (2017-07-05 11:11:32 UTC) #11
ahe
3 years, 5 months ago (2017-07-05 11:12:34 UTC) #13
Message was sent while issue was closed.
Committed patchset #5 (id:100001) manually as
6bb89e4fbf8c5a73ec4dbc436074f7d92681967f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698