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

Unified Diff: pkg/analysis_server/lib/src/services/generated/util.dart

Issue 708263002: Clean up references in comments (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/util.dart ('k') | pkg/analyzer/lib/src/generated/ast.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/services/generated/util.dart
diff --git a/pkg/analysis_server/lib/src/services/generated/util.dart b/pkg/analysis_server/lib/src/services/generated/util.dart
index 2c89137e62bdcfde96c388f343bc8c2baaf1582a..ebd034b12f7f713c39c7427048b04b8a8c69a222 100644
--- a/pkg/analysis_server/lib/src/services/generated/util.dart
+++ b/pkg/analysis_server/lib/src/services/generated/util.dart
@@ -289,8 +289,9 @@ class CorrectionUtils {
}
/**
- * @return the precedence of the given node - result of [Expression#getPrecedence] if an
- * [Expression], negative otherwise.
+ * Return the precedence of the given [node]: the result of invoking
+ * [Expression.precedence] if the node is an [Expression], or a negative value
+ * otherwise.
*/
static int getExpressionPrecedence(AstNode node) {
if (node is Expression) {
@@ -425,8 +426,10 @@ class CorrectionUtils {
}
/**
- * @return the precedence of the given [Expression] parent. May be `-1` no operator.
- * @see #getPrecedence(Expression)
+ * Return the precedence of the given [expression]'s parent. May be `-1` no
+ * operator.
+ *
+ * See [getPrecedence].
*/
static int getParentPrecedence(Expression expression) {
AstNode parent = expression.parent;
@@ -665,7 +668,8 @@ class CorrectionUtils {
}
/**
- * @return `true` if the given [Element#getDisplayName] equals to the given name.
+ * Return `true` if the given [element]'s display name ([Element.displayName])
+ * is equal to the given [name].
*/
static bool hasDisplayName(Element element, String name) {
if (element == null) {
@@ -676,7 +680,8 @@ class CorrectionUtils {
}
/**
- * @return `true` if the given [Element#getName] equals to the given name.
+ * Return `true` if the given [element]'s name ([Element.name]) is equal to
+ * the given [name].
*/
static bool hasName(Element element, String name) {
if (element == null) {
@@ -909,7 +914,7 @@ class CorrectionUtils {
AstNode findNode(int offset) => new NodeLocator.con1(offset).searchWithin(unit);
/**
- * TODO(scheglov) replace with nodes once there will be [CompilationUnit#getComments].
+ * TODO(scheglov) replace with nodes once there will be [CompilationUnit.comments].
*
* @return the [SourceRange]s of all comments in [CompilationUnit].
*/
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/util.dart ('k') | pkg/analyzer/lib/src/generated/ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698