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

Issue 2643693002: Fix language/bad_constructor_test in dartk and analyzer. (Closed)

Created:
3 years, 11 months ago by asgerf
Modified:
3 years, 11 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix language/bad_constructor_test in dartk and analyzer. The test was incorrect because it did not declare that a static warning was to be expected due to an unresolved reference to 'q'. The unresolved reference has been removed as it has nothing to do with what it is supposed to test. The analyzer was incorrect in that a setter was reported to clash with a constructor of the same name, but this failure was hidden by the above issue. This has been fixed. dartk inherited the issue (and its fix) from the analyzer, but some additional error handling was needed in dartk to avoid crashing. Closes https://github.com/dart-lang/sdk/issues/11576 BUG= R=kmillikin@google.com, scheglov@google.com Committed: https://github.com/dart-lang/sdk/commit/76442f93947e41a85ed7242a7366cf114d680a8a

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add test cases #

Patch Set 3 : Move test cases so they remain sorted #

Patch Set 4 : Remove extra blank line #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -10 lines) Patch
M pkg/analyzer/lib/src/generated/error_verifier.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/analyzer/test/generated/compile_time_error_code_test.dart View 1 2 3 1 chunk +12 lines, -0 lines 0 comments Download
M pkg/analyzer/test/generated/non_error_resolver_test.dart View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M pkg/kernel/lib/analyzer/ast_from_analyzer.dart View 2 chunks +8 lines, -0 lines 0 comments Download
M tests/language/bad_constructor_test.dart View 1 chunk +3 lines, -3 lines 0 comments Download
M tests/language/language_analyzer2.status View 2 chunks +0 lines, -4 lines 0 comments Download
M tests/language/language_kernel.status View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 9 (4 generated)
asgerf
3 years, 11 months ago (2017-01-18 10:04:01 UTC) #4
Kevin Millikin (Google)
LGTM.
3 years, 11 months ago (2017-01-18 10:39:19 UTC) #5
scheglov
lgtm https://codereview.chromium.org/2643693002/diff/1/pkg/analyzer/lib/src/generated/error_verifier.dart File pkg/analyzer/lib/src/generated/error_verifier.dart (right): https://codereview.chromium.org/2643693002/diff/1/pkg/analyzer/lib/src/generated/error_verifier.dart#newcode2710 pkg/analyzer/lib/src/generated/error_verifier.dart:2710: if (field != null && field.getter != null) ...
3 years, 11 months ago (2017-01-18 17:11:52 UTC) #6
asgerf
https://codereview.chromium.org/2643693002/diff/1/pkg/analyzer/lib/src/generated/error_verifier.dart File pkg/analyzer/lib/src/generated/error_verifier.dart (right): https://codereview.chromium.org/2643693002/diff/1/pkg/analyzer/lib/src/generated/error_verifier.dart#newcode2710 pkg/analyzer/lib/src/generated/error_verifier.dart:2710: if (field != null && field.getter != null) { ...
3 years, 11 months ago (2017-01-18 18:18:34 UTC) #7
asgerf
3 years, 11 months ago (2017-01-19 12:10:40 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as
76442f93947e41a85ed7242a7366cf114d680a8a (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698