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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/DartFunctionImpl.java

Issue 10916211: Issue 4752. When convert to getter, remove also () (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use setter in *Info 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
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 352a2e815884954f05929aeafc3ec37ca11f5730..a6533a58c6a5919c738c9d500e56024c3c14229d 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
@@ -91,6 +91,12 @@ public class DartFunctionImpl extends SourceReferenceImpl implements DartFunctio
}
@Override
+ public SourceRange getParametersCloseParen() throws DartModelException {
+ DartFunctionInfo info = (DartFunctionInfo) getElementInfo();
+ return new SourceRangeImpl(info.getParametersCloseParen(), 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