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

Issue 10661022: Issue 3752. Support for @override annotations (as structured doc comments) (Closed)

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

Description

Issue 3752. Support for @override annotations (as structured doc comments) http://code.google.com/p/dart/issues/detail?id=3752 Now we always record comments and bind them to nodes. We record DartMetadata for each DartDeclaration with flags for @deprecated and @override. In this CL we analyze @override and report error if method does not actually override anything. R=brianwilkerson@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=9129

Patch Set 1 #

Total comments: 28
Unified diffs Side-by-side diffs Delta from patch set Stats (+668 lines, -545 lines) Patch
M compiler/java/com/google/dart/compiler/DartCompiler.java View 2 chunks +3 lines, -5 lines 0 comments Download
M compiler/java/com/google/dart/compiler/DartCompilerMainContext.java View 3 chunks +5 lines, -3 lines 2 comments Download
M compiler/java/com/google/dart/compiler/DeltaAnalyzer.java View 4 chunks +3 lines, -3 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartComment.java View 2 chunks +2 lines, -2 lines 0 comments Download
M compiler/java/com/google/dart/compiler/ast/DartDeclaration.java View 2 chunks +15 lines, -7 lines 0 comments Download
A compiler/java/com/google/dart/compiler/ast/DartMetadata.java View 1 chunk +35 lines, -0 lines 0 comments Download
D compiler/java/com/google/dart/compiler/parser/CommentPreservingParser.java View 1 chunk +0 lines, -267 lines 0 comments Download
M compiler/java/com/google/dart/compiler/parser/DartParser.java View 5 chunks +62 lines, -40 lines 2 comments Download
A compiler/java/com/google/dart/compiler/parser/DartParserCommentsHelper.java View 1 chunk +232 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/parser/DartPrefixParser.java View 2 chunks +11 lines, -2 lines 0 comments Download
M compiler/java/com/google/dart/compiler/parser/DartScannerParserContext.java View 1 chunk +1 line, -1 line 2 comments Download
M compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java View 1 chunk +1 line, -0 lines 2 comments Download
M compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java View 1 chunk +5 lines, -0 lines 2 comments Download
M compiler/javatests/com/google/dart/compiler/CompilerTestCase.java View 10 chunks +18 lines, -26 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/common/LibrarySourceFileTest.java View 2 chunks +8 lines, -1 line 2 comments Download
M compiler/javatests/com/google/dart/compiler/parser/AbstractParserTest.java View 2 chunks +0 lines, -9 lines 2 comments Download
M compiler/javatests/com/google/dart/compiler/parser/CPParserTest.java View 2 chunks +8 lines, -16 lines 2 comments Download
M compiler/javatests/com/google/dart/compiler/parser/CommentTest.java View 4 chunks +18 lines, -61 lines 2 comments Download
M compiler/javatests/com/google/dart/compiler/parser/DartParserRunner.java View 2 chunks +8 lines, -2 lines 2 comments Download
M compiler/javatests/com/google/dart/compiler/parser/DietParserTest.java View 2 chunks +7 lines, -3 lines 2 comments Download
M compiler/javatests/com/google/dart/compiler/parser/LibraryParserTest.java View 3 chunks +10 lines, -9 lines 2 comments Download
M compiler/javatests/com/google/dart/compiler/parser/ParserEventsTest.java View 3 chunks +16 lines, -5 lines 2 comments Download
M compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java View 3 chunks +91 lines, -3 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/parser/TruncatedSourceParserTest.java View 2 chunks +1 line, -3 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/resolver/ResolverTestCase.java View 3 chunks +10 lines, -4 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java View 1 chunk +29 lines, -0 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerTestCase.java View 4 chunks +3 lines, -3 lines 2 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/analysis/AnalysisUtility.java View 2 chunks +7 lines, -4 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/CompletionEngine.java View 3 chunks +1 line, -4 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/completion/CompletionParser.java View 3 chunks +45 lines, -47 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/formatter/CodeSnippetParsingUtil.java View 4 chunks +10 lines, -5 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/compiler/DartCompilerUtilities.java View 4 chunks +3 lines, -10 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
scheglov
8 years, 6 months ago (2012-06-24 02:10:46 UTC) #1
Brian Wilkerson
LGTM overall, but unless you're confident that we want most of these changes even if ...
8 years, 6 months ago (2012-06-25 14:24:38 UTC) #2
scheglov
Most of these changes are: 1. call single Parser constructor; 2. always create and bind ...
8 years, 6 months ago (2012-06-26 19:46:34 UTC) #3
scheglov
8 years, 6 months ago (2012-06-26 19:54:15 UTC) #4
On 2012/06/25 14:24:38, Brian Wilkerson wrote:


>
https://chromiumcodereview.appspot.com/10661022/diff/1/compiler/java/com/goog...
> compiler/java/com/google/dart/compiler/resolver/ResolverErrorCode.java:126:
> INVALID_OVERRIDE_METADATA("Method marked with @override, but does not override
> any superclass element"),
> This should be a warning, not an error.

  Hm...
  Actually issue requests error for invalid @override.

Powered by Google App Engine
This is Rietveld 408576698