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

Unified Diff: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java

Issue 10984033: Tweaks for @deprecated and @override presentation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
diff --git a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
index 8ad84c31ca1071398a0d0edcc37067c86fcdd88f..db347e2424af0b08c8dafb8e28ee6b2b54c545bf 100644
--- a/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
+++ b/compiler/java/com/google/dart/compiler/type/TypeAnalyzer.java
@@ -2291,7 +2291,8 @@ public class TypeAnalyzer implements DartCompilationPhase {
}
// @deprecated
if (element != null && element.getMetadata().isDeprecated()) {
- onError(node.getName(), TypeErrorCode.DEPRECATED_ELEMENT, name);
+ onError(node.getName(), TypeErrorCode.DEPRECATED_ELEMENT,
+ Elements.getDeprecatedElementTitle(element));
}
// analyze Element
switch (element.getKind()) {
@@ -2650,7 +2651,8 @@ public class TypeAnalyzer implements DartCompilationPhase {
*/
private void checkDeprecated(HasSourceInfo nameNode, Element element) {
if (element != null && element.getMetadata().isDeprecated()) {
- onError(nameNode, TypeErrorCode.DEPRECATED_ELEMENT, element);
+ onError(nameNode, TypeErrorCode.DEPRECATED_ELEMENT,
+ Elements.getDeprecatedElementTitle(element));
}
}
« no previous file with comments | « compiler/java/com/google/dart/compiler/resolver/TypeErrorCode.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698