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

Issue 2828253003: Add top level type inference logic for integer literals. (Closed)

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

Description

Add top level type inference logic for integer literals. This CL hooks up enough infrastructure for doing simple top level type inference of variables whose initializer is an int. Additional type inference rules will be added in follow-up CLs. R=karlklose@google.com Committed: https://github.com/dart-lang/sdk/commit/77d26a330cd535ed90f2f53aa0da134a4deb95f1

Patch Set 1 #

Patch Set 2 : Clean up, bug fix, and remove unintentional expectations changes #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+563 lines, -71 lines) Patch
M pkg/analysis_server/analysis_server.iml View 1 chunk +0 lines, -1 line 0 comments Download
M pkg/analyzer/lib/src/fasta/ast_builder.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/lib/src/kernel/ast_from_analyzer.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/lib/src/summary/fasta/summary_builder.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/tool/summary/mini_ast.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/parser/member_listener.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/parser/node_listener.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/front_end.iml View 1 chunk +0 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/builder/ast_factory.dart View 2 chunks +6 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/builder/builder.dart View 2 chunks +9 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/body_builder.dart View 5 chunks +23 lines, -6 lines 2 comments Download
M pkg/front_end/lib/src/fasta/kernel/fasta_accessors.dart View 2 chunks +5 lines, -4 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/frontend_accessors.dart View 2 chunks +9 lines, -4 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart View 2 chunks +10 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart View 5 chunks +30 lines, -3 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart View 1 3 chunks +61 lines, -5 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_library_builder.dart View 3 chunks +7 lines, -5 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart View 1 4 chunks +101 lines, -6 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_target.dart View 2 chunks +3 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/parser/listener.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/parser/parser.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/source/diet_listener.dart View 1 2 chunks +3 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/source/outline_builder.dart View 3 chunks +9 lines, -6 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/source_class_builder.dart View 1 2 chunks +14 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/source_library_builder.dart View 1 3 chunks +28 lines, -6 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/source_loader.dart View 4 chunks +49 lines, -3 lines 0 comments Download
M pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart View 1 5 chunks +157 lines, -11 lines 6 comments Download
M pkg/front_end/test/fasta/kompile.status View 1 chunk +1 line, -0 lines 0 comments Download
M pkg/front_end/test/subpackage_relationships_test.dart View 2 chunks +2 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/toplevel_inference_toplevel_var.dart View 1 1 chunk +6 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/toplevel_inference_toplevel_var.dart.direct.expect View 1 chunk +7 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/toplevel_inference_toplevel_var.dart.outline.expect View 1 chunk +6 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/toplevel_inference_toplevel_var.dart.strong.expect View 1 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
Paul Berry
3 years, 8 months ago (2017-04-20 12:49:26 UTC) #2
Paul Berry
3 years, 8 months ago (2017-04-21 07:02:05 UTC) #4
Paul Berry
3 years, 8 months ago (2017-04-21 09:01:29 UTC) #6
karlklose
LGTM https://codereview.chromium.org/2828253003/diff/20001/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/2828253003/diff/20001/pkg/front_end/lib/src/fasta/kernel/body_builder.dart#newcode95 pkg/front_end/lib/src/fasta/kernel/body_builder.dart:95: /// If not `null`, dependencies on fields are ...
3 years, 8 months ago (2017-04-21 11:11:02 UTC) #8
Paul Berry
https://codereview.chromium.org/2828253003/diff/20001/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/2828253003/diff/20001/pkg/front_end/lib/src/fasta/kernel/body_builder.dart#newcode95 pkg/front_end/lib/src/fasta/kernel/body_builder.dart:95: /// If not `null`, dependencies on fields are accumulated ...
3 years, 8 months ago (2017-04-21 11:32:26 UTC) #9
Paul Berry
3 years, 8 months ago (2017-04-21 11:38:25 UTC) #11
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
77d26a330cd535ed90f2f53aa0da134a4deb95f1 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698