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

Issue 2849213002: Add a strong mode implementation of LUB to fasta; use it to infer ?: (Closed)

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

Description

Add a strong mode implementation of LUB to fasta; use it to infer ?: R=ahe@google.com, leafp@google.com Committed: https://github.com/dart-lang/sdk/commit/d842f35bb2b374e1639345178a7d2997a208cf15

Patch Set 1 #

Total comments: 40
Unified diffs Side-by-side diffs Delta from patch set Stats (+1007 lines, -12 lines) Patch
M pkg/analysis_server/analysis_server.iml View 1 chunk +0 lines, -1 line 0 comments Download
M pkg/analyzer_cli/analyzer_cli.iml View 1 chunk +0 lines, -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 1 chunk +4 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/body_builder.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart View 1 chunk +7 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart View 1 chunk +15 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart View 3 chunks +5 lines, -0 lines 2 comments Download
M pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart View 4 chunks +24 lines, -1 line 4 comments Download
A pkg/front_end/lib/src/fasta/type_inference/type_schema_environment.dart View 1 chunk +402 lines, -0 lines 19 comments Download
M pkg/front_end/test/fasta/compile.status View 1 chunk +1 line, -0 lines 2 comments Download
M pkg/front_end/test/fasta/kompile.status View 1 chunk +1 line, -0 lines 2 comments Download
M pkg/front_end/test/fasta/outline.status View 1 chunk +1 line, -0 lines 2 comments Download
A pkg/front_end/test/fasta/type_inference/type_schema_environment_test.dart View 1 chunk +487 lines, -0 lines 6 comments Download
A pkg/front_end/testcases/inference/conditional_lub.dart View 1 chunk +15 lines, -0 lines 1 comment Download
A pkg/front_end/testcases/inference/conditional_lub.dart.direct.expect View 1 chunk +11 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/conditional_lub.dart.outline.expect View 1 chunk +10 lines, -0 lines 0 comments Download
A pkg/front_end/testcases/inference/conditional_lub.dart.strong.expect View 1 chunk +11 lines, -0 lines 0 comments Download
M pkg/kernel/lib/type_environment.dart View 1 chunk +11 lines, -6 lines 2 comments Download

Messages

Total messages: 11 (3 generated)
Paul Berry
3 years, 7 months ago (2017-05-01 18:54:59 UTC) #2
Paul Berry
3 years, 7 months ago (2017-05-02 17:36:17 UTC) #4
ahe
lgtm https://codereview.chromium.org/2849213002/diff/1/pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart File pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart (right): https://codereview.chromium.org/2849213002/diff/1/pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart#newcode8 pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart:8: import 'package:front_end/src/fasta/type_inference/type_schema_environment.dart'; Long line. https://codereview.chromium.org/2849213002/diff/1/pkg/front_end/lib/src/fasta/type_inference/type_schema_environment.dart File pkg/front_end/lib/src/fasta/type_inference/type_schema_environment.dart (right): ...
3 years, 7 months ago (2017-05-02 18:32:57 UTC) #5
ahe
lgtm Some topics for our next 1:1, but nothing blocking.
3 years, 7 months ago (2017-05-02 18:35:03 UTC) #6
Bob Nystrom
https://codereview.chromium.org/2849213002/diff/1/pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart File pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart (right): https://codereview.chromium.org/2849213002/diff/1/pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart#newcode179 pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart:179: this.classHierarchy = classHierarchy; Drive-by: Is this correct? It's re-assigning ...
3 years, 7 months ago (2017-05-02 23:22:18 UTC) #7
Leaf
lgtm https://codereview.chromium.org/2849213002/diff/1/pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart File pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart (right): https://codereview.chromium.org/2849213002/diff/1/pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart#newcode99 pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart:99: typeSchemaEnvironment.getLeastUpperBound(thenType, otherwiseType); This is, I believe, the current ...
3 years, 7 months ago (2017-05-02 23:28:46 UTC) #8
Paul Berry
https://codereview.chromium.org/2849213002/diff/1/pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart File pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart (right): https://codereview.chromium.org/2849213002/diff/1/pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart#newcode179 pkg/front_end/lib/src/fasta/type_inference/type_inference_engine.dart:179: this.classHierarchy = classHierarchy; On 2017/05/02 23:22:17, Bob Nystrom wrote: ...
3 years, 7 months ago (2017-05-03 17:31:25 UTC) #9
Paul Berry
3 years, 7 months ago (2017-05-03 17:36:54 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
d842f35bb2b374e1639345178a7d2997a208cf15 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698