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 2675603002: Reduce strong mode errors and warnings (Closed)

Created:
3 years, 10 months ago by Siggi Cherem (dart-lang)
Modified:
3 years, 10 months ago
Reviewers:
ahe, kasperl
CC:
dart-fe-team+reviews_google.com, Paul Berry
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 31

Patch Set 2 : comments & cleanup #

Total comments: 44

Patch Set 3 : 2nd round of comments #

Patch Set 4 : fix access to isAbstract #

Patch Set 5 : don't override isAbstract, it's already defined in ModifierBuilder #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+186 lines, -80 lines) Patch
M pkg/front_end/.analysis_options View 1 1 chunk +16 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/analyzer/element_store.dart View 1 2 chunks +7 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/analyzer/mock_element.dart View 1 11 chunks +31 lines, -16 lines 0 comments Download
M pkg/front_end/lib/src/fasta/analyzer/mock_type.dart View 1 2 3 chunks +65 lines, -18 lines 0 comments Download
M pkg/front_end/lib/src/fasta/builder/builder.dart View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M pkg/front_end/lib/src/fasta/builder/library_builder.dart View 1 2 chunks +1 line, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/builder/member_builder.dart View 1 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/builder/named_type_builder.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/builder/procedure_builder.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/builder/type_builder.dart View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/dill/dill_member_builder.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/body_builder.dart View 1 2 3 4 12 chunks +18 lines, -13 lines 1 comment Download
M pkg/front_end/lib/src/fasta/kernel/builder_accessors.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/kernel/kernel_enum_builder.dart View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/loader.dart View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/front_end/lib/src/fasta/parser/parser.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/scanner/recover.dart View 1 2 1 chunk +1 line, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/source/outline_builder.dart View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/source/source_class_builder.dart View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/source/source_library_builder.dart View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M pkg/front_end/lib/src/fasta/source/source_loader.dart View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/source/stack_listener.dart View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M pkg/front_end/lib/src/fasta/testing/kernel_chain.dart View 1 6 chunks +6 lines, -6 lines 0 comments Download
M pkg/front_end/lib/src/fasta/util/link.dart View 1 2 4 chunks +8 lines, -6 lines 0 comments Download

Messages

Total messages: 23 (11 generated)
Siggi Cherem (dart-lang)
https://codereview.chromium.org/2675603002/diff/1/pkg/front_end/lib/src/fasta/builder/library_builder.dart File pkg/front_end/lib/src/fasta/builder/library_builder.dart (right): https://codereview.chromium.org/2675603002/diff/1/pkg/front_end/lib/src/fasta/builder/library_builder.dart#newcode60 pkg/front_end/lib/src/fasta/builder/library_builder.dart:60: Builder buildAmbiguousBuilder( one of the subclasses returns a MixinAccessor, ...
3 years, 10 months ago (2017-02-02 04:26:58 UTC) #1
ahe
https://codereview.chromium.org/2675603002/diff/1/pkg/front_end/lib/src/fasta/analyzer/mock_element.dart File pkg/front_end/lib/src/fasta/analyzer/mock_element.dart (right): https://codereview.chromium.org/2675603002/diff/1/pkg/front_end/lib/src/fasta/analyzer/mock_element.dart#newcode68 pkg/front_end/lib/src/fasta/analyzer/mock_element.dart:68: T accept<T>(ElementVisitor<T> visitor) => internalError("not supported."); The types added ...
3 years, 10 months ago (2017-02-02 07:28:30 UTC) #4
kasperl
Couldn't help but follow along here! Very interesting and a good way for us to ...
3 years, 10 months ago (2017-02-02 07:51:31 UTC) #6
Siggi Cherem (dart-lang)
https://codereview.chromium.org/2675603002/diff/1/pkg/front_end/lib/src/fasta/analyzer/mock_element.dart File pkg/front_end/lib/src/fasta/analyzer/mock_element.dart (right): https://codereview.chromium.org/2675603002/diff/1/pkg/front_end/lib/src/fasta/analyzer/mock_element.dart#newcode68 pkg/front_end/lib/src/fasta/analyzer/mock_element.dart:68: T accept<T>(ElementVisitor<T> visitor) => internalError("not supported."); On 2017/02/02 07:28:30, ...
3 years, 10 months ago (2017-02-02 16:30:35 UTC) #7
Siggi Cherem (dart-lang)
PTAL I believe I addressed all the comments from here and that we discussed offline. ...
3 years, 10 months ago (2017-02-06 23:35:51 UTC) #13
ahe
This seems fine, but there's a few cases that still concern. In particular forEach and ...
3 years, 10 months ago (2017-02-07 11:03:08 UTC) #14
Siggi Cherem (dart-lang)
https://codereview.chromium.org/2675603002/diff/140001/pkg/front_end/lib/src/fasta/analyzer/mock_type.dart File pkg/front_end/lib/src/fasta/analyzer/mock_type.dart (right): https://codereview.chromium.org/2675603002/diff/140001/pkg/front_end/lib/src/fasta/analyzer/mock_type.dart#newcode40 pkg/front_end/lib/src/fasta/analyzer/mock_type.dart:40: internalError("not supported."); On 2017/02/07 11:03:07, ahe wrote: > Would ...
3 years, 10 months ago (2017-02-07 21:59:26 UTC) #17
ahe
https://codereview.chromium.org/2675603002/diff/140001/pkg/front_end/lib/src/fasta/analyzer/mock_type.dart File pkg/front_end/lib/src/fasta/analyzer/mock_type.dart (right): https://codereview.chromium.org/2675603002/diff/140001/pkg/front_end/lib/src/fasta/analyzer/mock_type.dart#newcode40 pkg/front_end/lib/src/fasta/analyzer/mock_type.dart:40: internalError("not supported."); On 2017/02/07 21:59:25, Siggi Cherem (dart-lang) wrote: ...
3 years, 10 months ago (2017-02-08 19:59:24 UTC) #18
Siggi Cherem (dart-lang)
thanks Peter - I think I've addressed all the comments. PTAL https://codereview.chromium.org/2675603002/diff/140001/pkg/front_end/lib/src/fasta/analyzer/mock_type.dart File pkg/front_end/lib/src/fasta/analyzer/mock_type.dart (right): ...
3 years, 10 months ago (2017-02-09 04:44:02 UTC) #19
ahe
lgtm
3 years, 10 months ago (2017-02-09 15:46:10 UTC) #20
Siggi Cherem (dart-lang)
Committed patchset #5 (id:240001) manually as 935ec2bb8948f142c7843a4eaa6f1aa09213c408 (presubmit successful).
3 years, 10 months ago (2017-02-10 19:14:01 UTC) #22
Siggi Cherem (dart-lang)
3 years, 10 months ago (2017-02-10 19:20:32 UTC) #23
Message was sent while issue was closed.
https://codereview.chromium.org/2675603002/diff/240001/pkg/front_end/lib/src/...
File pkg/front_end/lib/src/fasta/kernel/body_builder.dart (right):

https://codereview.chromium.org/2675603002/diff/240001/pkg/front_end/lib/src/...
pkg/front_end/lib/src/fasta/kernel/body_builder.dart:1644: if (type.isAbstract)
{
FYI - I reverted this one change for now so I could land this and investigate
later. I left it as type.cls.isAbstract, so this will have an analyzer error
(surprisingly only in strong mode)

Powered by Google App Engine
This is Rietveld 408576698