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: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartFunctionImpl.java

Issue 11577022: Issue 7093. Support for inlining function references. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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/model/DartFunctionImpl.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartFunctionImpl.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartFunctionImpl.java
index 5e9b5bb6eb8818b8e22ed19191d4c5e7d1e057a8..0eed78f073c34c35a1d6fbf08c49589d4f9ffcf9 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartFunctionImpl.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartFunctionImpl.java
@@ -121,6 +121,12 @@ public class DartFunctionImpl extends SourceReferenceImpl implements DartFunctio
}
@Override
+ public SourceRange getParametersOpenParen() throws DartModelException {
+ DartFunctionInfo info = (DartFunctionInfo) getElementInfo();
+ return new SourceRangeImpl(info.getParametersOpenParen(), 1);
+ }
+
+ @Override
public String[] getParameterTypeNames() throws DartModelException {
ArrayList<String> typeNames = new ArrayList<String>();
for (DartVariableDeclaration variable : getChildrenOfType(DartVariableDeclaration.class)) {

Powered by Google App Engine
This is Rietveld 408576698