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

Issue 11787017: Initial implementation of MemoryIndexStoreImpl and IndexContributor. (Closed)

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

Description

Initial implementation of MemoryIndexStoreImpl and IndexContributor. Also added getElement() to several nodes. Added ASTNodes for utilities. For now it uses ElementProxy, depending on your opinion I will change it to ElementHandle or we will keep ElementProxy. R=brianwilkerson@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=16766

Patch Set 1 #

Total comments: 32

Patch Set 2 : Update for review comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+1626 lines, -176 lines) Patch
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ASTNode.java View 1 chunk +1 line, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ClassDeclaration.java View 2 chunks +9 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/FunctionDeclaration.java View 2 chunks +11 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/FunctionTypeAlias.java View 2 chunks +11 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/SimpleIdentifier.java View 1 2 chunks +31 lines, -0 lines 2 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/VariableDeclaration.java View 3 chunks +12 lines, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/ElementProxy.java View 1 chunk +139 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/index/Index.java View 2 chunks +4 lines, -4 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/index/IndexStore.java View 4 chunks +9 lines, -23 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/index/Location.java View 4 chunks +11 lines, -11 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/index/MemoryIndexStore.java View 2 chunks +1 line, -2 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/index/RelationshipCallback.java View 2 chunks +3 lines, -4 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/ContributedLocation.java View 3 chunks +16 lines, -21 lines 0 comments Download
A editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/IndexConstants.java View 1 chunk +142 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/IndexContributor.java View 1 1 chunk +245 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/IndexImpl.java View 2 chunks +3 lines, -3 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/MemoryIndexStoreImpl.java View 7 chunks +89 lines, -54 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/operation/GetRelationshipsOperation.java View 6 chunks +9 lines, -9 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/operation/IndexUnitOperation.java View 2 chunks +3 lines, -3 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/operation/RemoveSourceOperation.java View 1 chunk +1 line, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/source/FileBasedSource.java View 1 1 chunk +3 lines, -3 lines 0 comments Download
A + editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/utilities/collection/IntStack.java View 2 chunks +2 lines, -2 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/.classpath View 1 chunk +3 lines, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/META-INF/MANIFEST.MF View 1 chunk +3 lines, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/build.properties View 1 chunk +3 lines, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/TestAll.java View 1 chunk +1 line, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/SimpleIdentifierTest.java View 1 1 chunk +87 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/ast/TestAll.java View 1 1 chunk +1 line, -0 lines 0 comments Download
A editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/element/ElementProxyTest.java View 1 chunk +132 lines, -0 lines 0 comments Download
A + editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/element/TestAll.java View 3 chunks +3 lines, -3 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/index/IndexFactoryTest.java View 1 chunk +1 line, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/index/LocationTest.java View 3 chunks +11 lines, -10 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/index/RelationshipTest.java View 1 chunk +1 line, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/index/TestAll.java View 1 chunk +1 line, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/index/ContributedLocationTest.java View 2 chunks +8 lines, -6 lines 0 comments Download
A editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/index/IndexContributorTest.java View 1 1 chunk +415 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/index/IndexImplTest.java View 2 chunks +4 lines, -4 lines 0 comments Download
A editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/index/MemoryIndexStoreImplTest.java View 1 1 chunk +188 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/index/TestAll.java View 1 chunk +3 lines, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/index/operation/GetRelationshipsOperationTest.java View 2 chunks +2 lines, -2 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/internal/index/operation/RemoveSourceOperationTest.java View 1 chunk +1 line, -1 line 0 comments Download
A + editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/utilities/collection/IntStackTest.java View 2 chunks +2 lines, -2 lines 0 comments Download
M editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/utilities/collection/TestAll.java View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
scheglov
7 years, 11 months ago (2013-01-07 06:19:19 UTC) #1
Brian Wilkerson
DBC https://codereview.chromium.org/11787017/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ASTNode.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ASTNode.java (right): https://codereview.chromium.org/11787017/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ASTNode.java#newcode104 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ASTNode.java:104: public ASTNode getParent() { Why did you remove ...
7 years, 11 months ago (2013-01-07 21:27:18 UTC) #2
scheglov
PTAL https://codereview.chromium.org/11787017/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ASTNode.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ASTNode.java (right): https://codereview.chromium.org/11787017/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ASTNode.java#newcode104 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/ASTNode.java:104: public ASTNode getParent() { To be able to ...
7 years, 11 months ago (2013-01-07 22:45:41 UTC) #3
Brian Wilkerson
LGTM https://codereview.chromium.org/11787017/diff/1049/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/SimpleIdentifier.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/SimpleIdentifier.java (right): https://codereview.chromium.org/11787017/diff/1049/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/SimpleIdentifier.java#newcode100 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/SimpleIdentifier.java:100: return true; Doesn't this need to check that ...
7 years, 11 months ago (2013-01-07 23:10:10 UTC) #4
scheglov
7 years, 11 months ago (2013-01-07 23:21:35 UTC) #5
https://codereview.chromium.org/11787017/diff/1049/editor/tools/plugins/com.g...
File
editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/SimpleIdentifier.java
(right):

https://codereview.chromium.org/11787017/diff/1049/editor/tools/plugins/com.g...
editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/ast/SimpleIdentifier.java:100:
return true;
On 2013/01/07 23:10:10, Brian Wilkerson wrote:
> Doesn't this need to check that the identifier is on the left-hand side? In
the
> expression "a = b" I would expect the node for "b" to return false.

Done.

Powered by Google App Engine
This is Rietveld 408576698