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

Issue 2401783002: Report CompileTimeErrorCode.DUPLICATE_PART when not only URI, but even Source is the same. (Closed)

Created:
4 years, 2 months ago by scheglov
Modified:
4 years, 2 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Report CompileTimeErrorCode.DUPLICATE_PART when not only URI, but even Source is the same. There is one usecase when strongly speaking the error should not be reported - when the part is empty. But that still does not seem practical. R=brianwilkerson@google.com BUG= https://github.com/dart-lang/sdk/issues/27509 Committed: https://github.com/dart-lang/sdk/commit/59e8af70476a3806b813dbb9f386e32f0ad784ae

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -10 lines) Patch
M pkg/analyzer/lib/src/error/codes.dart View 1 chunk +2 lines, -6 lines 1 comment Download
M pkg/analyzer/lib/src/task/dart.dart View 2 chunks +3 lines, -3 lines 1 comment Download
M pkg/analyzer/test/generated/compile_time_error_code_test.dart View 1 chunk +13 lines, -1 line 0 comments Download

Messages

Total messages: 4 (1 generated)
scheglov
4 years, 2 months ago (2016-10-06 22:10:24 UTC) #1
Brian Wilkerson
lgtm https://codereview.chromium.org/2401783002/diff/1/pkg/analyzer/lib/src/error/codes.dart File pkg/analyzer/lib/src/error/codes.dart (right): https://codereview.chromium.org/2401783002/diff/1/pkg/analyzer/lib/src/error/codes.dart#newcode759 pkg/analyzer/lib/src/error/codes.dart:759: const CompileTimeErrorCode('DUPLICATE_PART', 'Duplicate part'); I think the old ...
4 years, 2 months ago (2016-10-06 22:14:11 UTC) #2
scheglov
4 years, 2 months ago (2016-10-07 03:44:35 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
59e8af70476a3806b813dbb9f386e32f0ad784ae (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698