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

Issue 10139017: Support for same prefix for multiple imports. (Closed)

Created:
8 years, 8 months ago by scheglov
Modified:
8 years, 8 months ago
Reviewers:
zundel
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Support for same prefix for multiple imports. R=zundel@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=6819

Patch Set 1 #

Total comments: 14

Patch Set 2 : Detect top-level duplicates in libraries with same prefix #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -21 lines) Patch
M compiler/java/com/google/dart/compiler/LibraryDepsVisitor.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java View 2 chunks +2 lines, -2 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantResolver.java View 1 chunk +2 lines, -2 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ElementKind.java View 1 chunk +1 line, -0 lines 0 comments Download
A compiler/java/com/google/dart/compiler/resolver/LibraryPrefixElement.java View 1 1 chunk +13 lines, -0 lines 0 comments Download
A compiler/java/com/google/dart/compiler/resolver/LibraryPrefixElementImplementation.java View 1 1 chunk +73 lines, -0 lines 1 comment Download
M compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java View 1 chunk +2 lines, -2 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/Resolver.java View 2 chunks +5 lines, -5 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/Scope.java View 1 1 chunk +15 lines, -0 lines 1 comment Download
M compiler/java/com/google/dart/compiler/resolver/TopLevelElementBuilder.java View 1 3 chunks +15 lines, -1 line 0 comments Download
M compiler/javatests/com/google/dart/compiler/end2end/inc/IncrementalCompilation2Test.java View 1 1 chunk +72 lines, -0 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/end2end/inc/MemoryLibrarySource.java View 1 2 chunks +26 lines, -3 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/AbstractParserTest.java View 2 chunks +6 lines, -0 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/TruncatedSourceParserTest.java View 1 chunk +3 lines, -0 lines 0 comments Download
M tests/co19/co19-compiler.status View 1 1 chunk +0 lines, -1 line 0 comments Download
M tests/language/language.status View 1 1 chunk +0 lines, -4 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
scheglov
8 years, 8 months ago (2012-04-20 21:34:23 UTC) #1
zundel
http://codereview.chromium.org/10139017/diff/1/compiler/java/com/google/dart/compiler/resolver/LibraryPrefixElement.java File compiler/java/com/google/dart/compiler/resolver/LibraryPrefixElement.java (right): http://codereview.chromium.org/10139017/diff/1/compiler/java/com/google/dart/compiler/resolver/LibraryPrefixElement.java#newcode1 compiler/java/com/google/dart/compiler/resolver/LibraryPrefixElement.java:1: // Copyright (c) 2011, the Dart project authors. Please ...
8 years, 8 months ago (2012-04-20 22:05:38 UTC) #2
scheglov
https://chromiumcodereview.appspot.com/10139017/diff/1/compiler/java/com/google/dart/compiler/resolver/LibraryPrefixElement.java File compiler/java/com/google/dart/compiler/resolver/LibraryPrefixElement.java (right): https://chromiumcodereview.appspot.com/10139017/diff/1/compiler/java/com/google/dart/compiler/resolver/LibraryPrefixElement.java#newcode1 compiler/java/com/google/dart/compiler/resolver/LibraryPrefixElement.java:1: // Copyright (c) 2011, the Dart project authors. Please ...
8 years, 8 months ago (2012-04-20 23:23:57 UTC) #3
zundel
8 years, 8 months ago (2012-04-21 00:41:17 UTC) #4
lgtm

https://chromiumcodereview.appspot.com/10139017/diff/5001/compiler/java/com/g...
File
compiler/java/com/google/dart/compiler/resolver/LibraryPrefixElementImplementation.java
(right):

https://chromiumcodereview.appspot.com/10139017/diff/5001/compiler/java/com/g...
compiler/java/com/google/dart/compiler/resolver/LibraryPrefixElementImplementation.java:21:
//    scope = new Scope(name, parent.getLibrary()) {
remove commented out code

https://chromiumcodereview.appspot.com/10139017/diff/5001/compiler/java/com/g...
File compiler/java/com/google/dart/compiler/resolver/Scope.java (right):

https://chromiumcodereview.appspot.com/10139017/diff/5001/compiler/java/com/g...
compiler/java/com/google/dart/compiler/resolver/Scope.java:43: //    if (element
instanceof LibraryElement) {
remove commented out code.

Powered by Google App Engine
This is Rietveld 408576698