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

Issue 10703046: Issue 3753. Support for @deprecated annotation (Closed)

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

Description

Patch Set 1 #

Total comments: 15

Patch Set 2 : Analyze for @deprecated all invocable elements #

Unified diffs Side-by-side diffs Delta from patch set Stats (+245 lines, -72 lines) Patch
M compiler/java/com/google/dart/compiler/resolver/AbstractNodeElement.java View 1 2 chunks +7 lines, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ClassElementImplementation.java View 4 chunks +9 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/Element.java View 1 2 chunks +4 lines, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ElementMap.java View 2 chunks +6 lines, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/Elements.java View 2 chunks +3 lines, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/FieldElementImplementation.java View 5 chunks +11 lines, -12 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/MemberBuilder.java View 2 chunks +4 lines, -2 lines 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/MethodElementImplementation.java View 5 chunks +11 lines, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/ResolveVisitor.java View 1 1 chunk +5 lines, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/TopLevelElementBuilder.java View 1 chunk +1 line, -1 line 0 comments Download
M compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java View 1 1 chunk +1 line, -0 lines 0 comments Download
M compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java View 1 10 chunks +52 lines, -6 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/resolver/ElementMapTest.java View 2 chunks +6 lines, -0 lines 0 comments Download
M compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java View 1 1 chunk +50 lines, -0 lines 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartEditorMessages.java View 1 chunk +1 line, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/DartEditorMessages.properties View 1 chunk +1 line, -1 line 0 comments Download
M editor/tools/plugins/com.google.dart.tools.ui/src/com/google/dart/tools/ui/internal/text/editor/SemanticHighlightings.java View 1 4 chunks +73 lines, -44 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
scheglov
8 years, 5 months ago (2012-06-29 14:17:03 UTC) #1
Brian Wilkerson
LGTM. Comments can be addressed in a separate CL. https://chromiumcodereview.appspot.com/10703046/diff/1/compiler/java/com/google/dart/compiler/resolver/AbstractNodeElement.java File compiler/java/com/google/dart/compiler/resolver/AbstractNodeElement.java (right): https://chromiumcodereview.appspot.com/10703046/diff/1/compiler/java/com/google/dart/compiler/resolver/AbstractNodeElement.java#newcode1 compiler/java/com/google/dart/compiler/resolver/AbstractNodeElement.java:1: ...
8 years, 5 months ago (2012-06-29 16:17:49 UTC) #2
scheglov
https://chromiumcodereview.appspot.com/10703046/diff/1/compiler/java/com/google/dart/compiler/resolver/AbstractNodeElement.java File compiler/java/com/google/dart/compiler/resolver/AbstractNodeElement.java (right): https://chromiumcodereview.appspot.com/10703046/diff/1/compiler/java/com/google/dart/compiler/resolver/AbstractNodeElement.java#newcode1 compiler/java/com/google/dart/compiler/resolver/AbstractNodeElement.java:1: // Copyright (c) 2011, the Dart project authors. Please ...
8 years, 5 months ago (2012-06-29 20:11:56 UTC) #3
Brian Wilkerson
8 years, 5 months ago (2012-06-29 20:20:28 UTC) #4
LGTM

https://chromiumcodereview.appspot.com/10703046/diff/1/compiler/javatests/com...
File
compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
(right):

https://chromiumcodereview.appspot.com/10703046/diff/1/compiler/javatests/com...
compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java:2932:
"// @deprecated",
> we add warning for type reference.

OK. I understand the reasoning behind the behavior.

> I don't think that we should propagate deprecation flag to the type members.

I agree. I'm fine with it now that I understand the reasoning.

Powered by Google App Engine
This is Rietveld 408576698