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

Issue 9633009: Use Element instead of Symbol. (Closed)

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

Description

Use Element instead of Symbol. Return typed Element where possible. R=brianwilkerson@google.com,zundel@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=5178

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+686 lines, -787 lines) Patch
M compiler/java/com/google/dart/compiler/LibraryDepsVisitor.java View 3 chunks +4 lines, -4 lines 2 comments Download
M compiler/java/com/google/dart/compiler/ast/DartArrayAccess.java View 2 chunks +7 lines, -6 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartBinaryExpression.java View 2 chunks +7 lines, -6 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartClass.java View 6 chunks +8 lines, -9 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartClassMember.java View 2 chunks +2 lines, -4 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartDeclaration.java View 3 chunks +2 lines, -6 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartField.java View 2 chunks +4 lines, -4 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartFunctionExpression.java View 4 chunks +8 lines, -9 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartFunctionTypeAlias.java View 4 chunks +5 lines, -6 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartGotoStatement.java View 4 chunks +11 lines, -9 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartIdentifier.java View 3 chunks +13 lines, -33 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartInitializer.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartInvocation.java View 2 chunks +8 lines, -6 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartLabel.java View 4 chunks +9 lines, -9 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartMethodDefinition.java View 2 chunks +4 lines, -4 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartMethodInvocation.java View 3 chunks +17 lines, -17 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartNewExpression.java View 4 chunks +7 lines, -8 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartNode.java View 2 chunks +4 lines, -4 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartParameter.java View 5 chunks +10 lines, -11 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartPropertyAccess.java View 4 chunks +7 lines, -18 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartRedirectConstructorInvocation.java View 2 chunks +7 lines, -8 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartSuperConstructorInvocation.java View 3 chunks +8 lines, -9 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartSuperExpression.java View 3 chunks +6 lines, -6 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartToSourceVisitor.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartTypeParameter.java View 3 chunks +0 lines, -13 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartUnaryExpression.java View 2 chunks +7 lines, -6 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartUnit.java View 3 chunks +8 lines, -8 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartUnqualifiedInvocation.java View 1 chunk +10 lines, -2 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartVariable.java View 3 chunks +8 lines, -9 lines 0 comments Download
D compiler/java/com/google/dart/compiler/ast/ElementReference.java View 1 chunk +0 lines, -19 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/LibraryUnit.java View 2 chunks +2 lines, -2 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/viz/BaseASTWriter.java View 2 chunks +2 lines, -2 lines 0 comments Download
D compiler/java/com/google/dart/compiler/common/HasSymbol.java View 1 chunk +0 lines, -16 lines 0 comments Download
D compiler/java/com/google/dart/compiler/common/Symbol.java View 1 chunk +0 lines, -16 lines 0 comments Download
M compiler/java/com/google/dart/compiler/parser/DartParser.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/AbstractElement.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantAnalyzer.java View 13 chunks +13 lines, -14 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/CompileTimeConstantResolver.java View 6 chunks +9 lines, -9 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/Element.java View 1 chunk +6 lines, -2 lines 2 comments Download
M compiler/java/com/google/dart/compiler/resolver/ElementKind.java View 2 chunks +2 lines, -4 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ElementMap.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/Elements.java View 6 chunks +6 lines, -6 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/FieldElementImplementation.java View 1 chunk +2 lines, -2 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/FunctionAliasElementImplementation.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java View 7 chunks +7 lines, -7 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/MethodElementImplementation.java View 2 chunks +3 lines, -3 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java View 3 chunks +3 lines, -3 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ResolveVisitor.java View 2 chunks +2 lines, -2 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/Resolver.java View 22 chunks +30 lines, -30 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java View 2 chunks +4 lines, -4 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/SyntheticDefaultConstructorElement.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/TopLevelElementBuilder.java View 4 chunks +7 lines, -7 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/TypeVariableElementImplementation.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java View 28 chunks +35 lines, -39 lines 2 comments Download
M compiler/javatests/com/google/dart/compiler/CompilerTestCase.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/javatests/com/google/dart/compiler/DeltaAnalyzerTest.java View 4 chunks +6 lines, -6 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/IdeTest.java View 6 chunks +6 lines, -6 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/CommentTest.java View 1 chunk +2 lines, -2 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java View 1 chunk +5 lines, -5 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/resolver/ElementMapTest.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/javatests/com/google/dart/compiler/resolver/ResolverAuditVisitor.java View 3 chunks +4 lines, -4 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/resolver/ResolverCompilerTest.java View 15 chunks +64 lines, -64 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java View 3 chunks +4 lines, -4 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java View 7 chunks +11 lines, -12 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTestCase.java View 2 chunks +3 lines, -3 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/PropertyGetter.java View 1 chunk +1 line, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/CompletionEngine.java View 16 chunks +17 lines, -17 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/ScopedNameFinder.java View 8 chunks +8 lines, -8 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/TypeRefiner.java View 6 chunks +6 lines, -6 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/ast/IdentifierCompleter.java View 1 chunk +2 lines, -2 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/index/contributor/IndexContributor.java View 25 chunks +62 lines, -63 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/indexer/contributor/DartContributor.java View 1 chunk +7 lines, -7 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/indexer/contributor/FieldAccessContributor.java View 2 chunks +6 lines, -6 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/indexer/contributor/MethodInvocationContributor.java View 2 chunks +28 lines, -28 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/indexer/contributor/MethodOverrideContributor.java View 2 chunks +3 lines, -4 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/indexer/contributor/TypeHierarchyContributor.java View 2 chunks +6 lines, -6 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/indexer/contributor/TypeReferencesContributor.java View 3 chunks +7 lines, -7 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/CompilationUnitImpl.java View 6 chunks +9 lines, -9 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartModelManager.java View 1 chunk +1 line, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/operation/CreateTypeOperation.java View 1 chunk +1 line, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/util/DOMFinder.java View 6 chunks +8 lines, -8 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/ast/DartAstUtilities.java View 2 chunks +3 lines, -3 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/ast/DartElementLocator.java View 14 chunks +34 lines, -34 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/ast/NameOccurrencesFinder.java View 1 chunk +1 line, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/bindings/BindingUtils.java View 9 chunks +14 lines, -15 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java View 3 chunks +3 lines, -3 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/samples/SamplesTest.java View 1 chunk +1 line, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/utilities/bindings/BindingUtilsTest.java View 12 chunks +14 lines, -14 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/callhierarchy/CalleeAnalyzerVisitor.java View 3 chunks +3 lines, -3 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/NLSKeyHyperlinkDetector.java View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
scheglov
8 years, 9 months ago (2012-03-08 05:29:44 UTC) #1
Brian Wilkerson
LGTM https://chromiumcodereview.appspot.com/9633009/diff/1/compiler/java/com/google/dart/compiler/resolver/Element.java File compiler/java/com/google/dart/compiler/resolver/Element.java (right): https://chromiumcodereview.appspot.com/9633009/diff/1/compiler/java/com/google/dart/compiler/resolver/Element.java#newcode13 compiler/java/com/google/dart/compiler/resolver/Element.java:13: String getOriginalName(); Not for this CL, but can ...
8 years, 9 months ago (2012-03-08 16:12:00 UTC) #2
scheglov
https://chromiumcodereview.appspot.com/9633009/diff/1/compiler/java/com/google/dart/compiler/resolver/Element.java File compiler/java/com/google/dart/compiler/resolver/Element.java (right): https://chromiumcodereview.appspot.com/9633009/diff/1/compiler/java/com/google/dart/compiler/resolver/Element.java#newcode13 compiler/java/com/google/dart/compiler/resolver/Element.java:13: String getOriginalName(); On 2012/03/08 16:12:00, Brian Wilkerson wrote: > ...
8 years, 9 months ago (2012-03-08 16:46:50 UTC) #3
zundel
lgtm2, just nits https://chromiumcodereview.appspot.com/9633009/diff/1/compiler/java/com/google/dart/compiler/LibraryDepsVisitor.java File compiler/java/com/google/dart/compiler/LibraryDepsVisitor.java (right): https://chromiumcodereview.appspot.com/9633009/diff/1/compiler/java/com/google/dart/compiler/LibraryDepsVisitor.java#newcode1 compiler/java/com/google/dart/compiler/LibraryDepsVisitor.java:1: // Copyright (c) 2011, the Dart ...
8 years, 9 months ago (2012-03-08 18:47:13 UTC) #4
scheglov
8 years, 9 months ago (2012-03-08 19:14:08 UTC) #5
https://chromiumcodereview.appspot.com/9633009/diff/1/compiler/java/com/googl...
File compiler/java/com/google/dart/compiler/LibraryDepsVisitor.java (right):

https://chromiumcodereview.appspot.com/9633009/diff/1/compiler/java/com/googl...
compiler/java/com/google/dart/compiler/LibraryDepsVisitor.java:1: // Copyright
(c) 2011, the Dart project authors.  Please see the AUTHORS file
On 2012/03/08 18:47:13, zundel wrote:
> update year to 2012 (ugh)

Done.

https://chromiumcodereview.appspot.com/9633009/diff/1/compiler/java/com/googl...
File compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java (right):

https://chromiumcodereview.appspot.com/9633009/diff/1/compiler/java/com/googl...
compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java:590: String
parameterName = namedExpression.getName().getName();
On 2012/03/08 18:47:13, zundel wrote:
> !! Not really your problem but node.getName().getName() looks funky.

Yes, I'd like to replace this in new AST with something like in JDT.
I.e. MethodDeclaration has getName() and SimpleName has getIdentifier().

Powered by Google App Engine
This is Rietveld 408576698