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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/Elements.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 | « no previous file | compiler/java/com/google/dart/compiler/resolver/ResolveVisitor.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/resolver/Elements.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/Elements.java b/compiler/java/com/google/dart/compiler/resolver/Elements.java
index c0025e7b30d86373b4bacec96627d0a7b54b93d8..d05a1e6cd9f939f6571cca4784f76b524d6595d4 100644
--- a/compiler/java/com/google/dart/compiler/resolver/Elements.java
+++ b/compiler/java/com/google/dart/compiler/resolver/Elements.java
@@ -477,6 +477,14 @@ static FieldElementImplementation fieldFromNode(DartField node,
}
return names;
}
+
+ /**
+ * Prepares title for {@link TypeErrorCode#DEPRECATED_ELEMENT}.
+ */
+ public static String getDeprecatedElementTitle(Element element) {
+ String title = getUserElementTitle(element);
+ return StringUtils.capitalize(title);
+ }
/**
* @return the user readable title of the given {@link Element}, a little different than
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/resolver/ResolveVisitor.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698