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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/index/util/ElementFactory.java

Issue 10915031: Issue 4796. Support for renaming named parameters in invocations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/index/util/ElementFactory.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/index/util/ElementFactory.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/index/util/ElementFactory.java
index ebab369a4eaa59767b884b55f1b5ada046396a6f..a3d82c9362f8f45eff3cd43020f016e68de45f8b 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/index/util/ElementFactory.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/index/util/ElementFactory.java
@@ -192,6 +192,13 @@ public final class ElementFactory {
return result;
}
+ // XXX
Brian Wilkerson 2012/08/31 15:05:36 nit: Remove the useless comment.
scheglov 2012/08/31 15:12:52 Done.
+ public static Element getParameterElement(MethodElement method, String parameterName)
+ throws DartModelException {
+ Element methodElement = getElement(method);
+ return new Element(methodElement.getResource(), composeElementId(methodElement, parameterName));
+ }
+
private static Element getElement0(ClassElement element) throws DartModelException {
Element result;
LibraryElement libraryElement = getLibraryElement(element);

Powered by Google App Engine
This is Rietveld 408576698