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

Issue 14657012: Report CTEC.AMBIGUOUS_EXPORT (Closed)

Created:
7 years, 7 months ago by scheglov
Modified:
7 years, 7 months ago
Reviewers:
jwren, Brian Wilkerson
CC:
reviews_dartlang.org, lukeechurch_gmail.com
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 6

Patch Set 2 : Move implementation to ErrorVerifier #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -24 lines) Patch
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/error/CompileTimeErrorCode.java View 2 chunks +7 lines, -3 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ElementResolver.java View 1 1 chunk +2 lines, -1 line 2 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/Namespace.java View 3 chunks +3 lines, -2 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/NamespaceBuilder.java View 1 chunk +21 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/verifier/ErrorVerifier.java View 1 7 chunks +55 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/CompileTimeErrorCodeTest.java View 2 chunks +12 lines, -14 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/resolver/NonErrorResolverTest.java View 1 chunk +48 lines, -0 lines 0 comments Download
M tests/co19/co19-analyzer.status View 1 chunk +0 lines, -2 lines 0 comments Download
M tests/html/html.status View 1 1 chunk +0 lines, -1 line 0 comments Download
M tests/language/language.status View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
scheglov
7 years, 7 months ago (2013-05-10 02:33:48 UTC) #1
Brian Wilkerson
https://codereview.chromium.org/14657012/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ElementResolver.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ElementResolver.java (right): https://codereview.chromium.org/14657012/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ElementResolver.java#newcode473 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ElementResolver.java:473: checkForAmbiguousExport(node, exportElement); Is there a reason why this can't ...
7 years, 7 months ago (2013-05-10 13:19:22 UTC) #2
scheglov
https://codereview.chromium.org/14657012/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ElementResolver.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ElementResolver.java (right): https://codereview.chromium.org/14657012/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ElementResolver.java#newcode473 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ElementResolver.java:473: checkForAmbiguousExport(node, exportElement); On 2013/05/10 13:19:22, Brian Wilkerson wrote: > ...
7 years, 7 months ago (2013-05-10 14:42:27 UTC) #3
Brian Wilkerson
LGTM https://codereview.chromium.org/14657012/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/Namespace.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/Namespace.java (right): https://codereview.chromium.org/14657012/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/Namespace.java#newcode67 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/Namespace.java:67: return Collections.unmodifiableMap(definedNames); > Making copy costs something. > ...
7 years, 7 months ago (2013-05-10 14:56:04 UTC) #4
scheglov
Committed patchset #2 manually as r22583 (presubmit successful).
7 years, 7 months ago (2013-05-10 15:13:54 UTC) #5
scheglov
7 years, 7 months ago (2013-05-10 15:14:44 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/14657012/diff/1/editor/tools/plugins/com.goog...
File
editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/Namespace.java
(right):

https://codereview.chromium.org/14657012/diff/1/editor/tools/plugins/com.goog...
editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/Namespace.java:67:
return Collections.unmodifiableMap(definedNames);
On 2013/05/10 14:56:04, Brian Wilkerson wrote:
> > Making copy costs something.
> > Creating unmodifiable view costs much less.
> 
> OK. But looking at the invocations of this method, none of them modify the
> result, so perhaps we don't need either, just an addition to the Javadoc that
> the result should not be modified.

Rolled back change in this file.

https://codereview.chromium.org/14657012/diff/6001/editor/tools/plugins/com.g...
File
editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ElementResolver.java
(right):

https://codereview.chromium.org/14657012/diff/6001/editor/tools/plugins/com.g...
editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/ElementResolver.java:465:
ExportElement exportElement = (ExportElement) element;
On 2013/05/10 14:56:04, Brian Wilkerson wrote:
> nit: perhaps we could just back out the changes to this file since they don't
> add anything at this point.

Done.

Powered by Google App Engine
This is Rietveld 408576698