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

Issue 2963703002: Add type inference of annotations. (Closed)

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

Description

Add type inference of annotations. Note that some locations where annotations can occur are not yet supported by kernel and/or fasta, so there are some test failures. R=ahe@google.com Committed: https://github.com/dart-lang/sdk/commit/9994caf4e25844d507b861c3076b5a573fa9c37f

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+464 lines, -50 lines) Patch
M pkg/front_end/lib/src/fasta/kernel/body_builder.dart View 3 chunks +9 lines, -0 lines 2 comments Download
M pkg/front_end/lib/src/fasta/source/diet_listener.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/source/stack_listener.dart View 2 chunks +7 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart View 2 chunks +12 lines, -0 lines 0 comments Download
M pkg/front_end/testcases/compile.status View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/testcases/inference/downwards_inference_annotations.dart View 1 chunk +2 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations.dart.direct.expect View 1 chunk +25 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations.dart.outline.expect View 1 chunk +20 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations.dart.strong.expect View 1 chunk +25 lines, -0 lines 0 comments Download
A + pkg/front_end/testcases/inference/downwards_inference_annotations_class_members.dart View 1 chunk +11 lines, -5 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations_class_members.dart.direct.expect View 1 chunk +20 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations_class_members.dart.outline.expect View 1 chunk +16 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations_class_members.dart.strong.expect View 1 chunk +20 lines, -0 lines 0 comments Download
A + pkg/front_end/testcases/inference/downwards_inference_annotations_for_loop_variable.dart View 1 chunk +6 lines, -5 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations_for_loop_variable.dart.direct.expect View 1 chunk +16 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations_for_loop_variable.dart.outline.expect View 1 chunk +12 lines, -0 lines 0 comments Download
A + pkg/front_end/testcases/inference/downwards_inference_annotations_locals.dart View 1 chunk +8 lines, -5 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations_locals.dart.direct.expect View 1 chunk +5 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations_locals.dart.outline.expect View 1 chunk +12 lines, -0 lines 0 comments Download
A + pkg/front_end/testcases/inference/downwards_inference_annotations_locals_referring_to_locals.dart View 1 chunk +8 lines, -6 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations_locals_referring_to_locals.dart.direct.expect View 1 chunk +14 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations_locals_referring_to_locals.dart.outline.expect View 1 chunk +12 lines, -0 lines 0 comments Download
A + pkg/front_end/testcases/inference/downwards_inference_annotations_parameter.dart View 1 chunk +6 lines, -5 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations_parameter.dart.direct.expect View 1 chunk +17 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations_parameter.dart.outline.expect View 1 chunk +18 lines, -0 lines 0 comments Download
A + pkg/front_end/testcases/inference/downwards_inference_annotations_parameter_local.dart View 1 chunk +6 lines, -5 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations_parameter_local.dart.direct.expect View 1 chunk +14 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations_parameter_local.dart.outline.expect View 1 chunk +12 lines, -0 lines 0 comments Download
A + pkg/front_end/testcases/inference/downwards_inference_annotations_type_variable.dart View 1 chunk +10 lines, -5 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations_type_variable.dart.direct.expect View 1 chunk +23 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations_type_variable.dart.outline.expect View 1 chunk +23 lines, -0 lines 0 comments Download
A + pkg/front_end/testcases/inference/downwards_inference_annotations_type_variable_local.dart View 1 chunk +6 lines, -5 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations_type_variable_local.dart.direct.expect View 1 chunk +14 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations_type_variable_local.dart.outline.expect View 1 chunk +12 lines, -0 lines 0 comments Download
A + pkg/front_end/testcases/inference/downwards_inference_annotations_typedef.dart View 1 chunk +2 lines, -4 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations_typedef.dart.direct.expect View 1 chunk +11 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/downwards_inference_annotations_typedef.dart.outline.expect View 1 chunk +11 lines, -0 lines 0 comments Download
M pkg/front_end/testcases/kompile.status View 1 chunk +9 lines, -0 lines 0 comments Download
M pkg/front_end/testcases/outline.status View 1 chunk +0 lines, -1 line 0 comments Download
M pkg/front_end/testcases/strong.status View 1 chunk +8 lines, -1 line 0 comments Download

Messages

Total messages: 6 (2 generated)
Paul Berry
3 years, 5 months ago (2017-06-28 04:55:16 UTC) #2
ahe
lgtm https://codereview.chromium.org/2963703002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart File pkg/front_end/lib/src/fasta/kernel/body_builder.dart (right): https://codereview.chromium.org/2963703002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart#newcode449 pkg/front_end/lib/src/fasta/kernel/body_builder.dart:449: _typeInferrer.inferMetadata(annotations); Can you move all these calls to ...
3 years, 5 months ago (2017-06-28 07:39:50 UTC) #3
Paul Berry
https://codereview.chromium.org/2963703002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart File pkg/front_end/lib/src/fasta/kernel/body_builder.dart (right): https://codereview.chromium.org/2963703002/diff/1/pkg/front_end/lib/src/fasta/kernel/body_builder.dart#newcode449 pkg/front_end/lib/src/fasta/kernel/body_builder.dart:449: _typeInferrer.inferMetadata(annotations); On 2017/06/28 07:39:49, ahe wrote: > Can you ...
3 years, 5 months ago (2017-06-28 12:15:59 UTC) #4
Paul Berry
3 years, 5 months ago (2017-06-28 12:30:29 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
9994caf4e25844d507b861c3076b5a573fa9c37f.

Powered by Google App Engine
This is Rietveld 408576698