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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/dartdoc/DartDocUtilities.java

Issue 69883003: Issue 249. Show documentation for highlighted code completion. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/dartdoc/DartDocUtilities.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/dartdoc/DartDocUtilities.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/dartdoc/DartDocUtilities.java
index 8ec29488e5ba9d1c3102d52b0249d796c6134f56..62196ad573bc5ea6587f99680524b444f38ab873 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/dartdoc/DartDocUtilities.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/utilities/dartdoc/DartDocUtilities.java
@@ -352,9 +352,7 @@ public final class DartDocUtilities {
try {
String docString = element.computeDocumentationComment();
- if (docString != null) {
- return convertToHtml(cleanDartDoc(docString));
- }
+ return getDartDocAsHtml(docString);
} catch (AnalysisException e) {
DartCore.logError(e);
}
@@ -363,6 +361,16 @@ public final class DartDocUtilities {
}
/**
+ * Return the prettified DartDoc text for the given element.
+ */
+ public static String getDartDocAsHtml(String docString) {
+ if (docString != null) {
+ return convertToHtml(cleanDartDoc(docString));
+ }
+ return null;
+ }
+
+ /**
* Return a one-line description of the given Element.
*
* @param the element to document

Powered by Google App Engine
This is Rietveld 408576698