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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/CompilationUnitImpl.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/CompilationUnitImpl.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/CompilationUnitImpl.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/CompilationUnitImpl.java
index 81238d363644657a424a946ff270875511fc9d24..9b9a0f8b79b0608dc21861fd24d349948c304310 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/CompilationUnitImpl.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/CompilationUnitImpl.java
@@ -314,6 +314,7 @@ public class CompilationUnitImpl extends SourceFileElementImpl<CompilationUnit>
}
DartFunctionImpl functionImpl = new DartFunctionImpl(compilationUnit, functionName);
DartFunctionInfo functionInfo = new DartFunctionInfo();
+ functionInfo.setParametersCloseParen(node.getFunction().getParametersCloseParen());
int start = node.getSourceInfo().getOffset();
functionInfo.setSourceRangeStart(start);
functionInfo.setSourceRangeEnd(node.getSourceInfo().getEnd());
@@ -419,6 +420,7 @@ public class CompilationUnitImpl extends SourceFileElementImpl<CompilationUnit>
String className, List<DartElementImpl> children) {
DartMethodImpl methodImpl = new DartMethodImpl(typeImpl, methodNode.getName().toString());
DartMethodInfo methodInfo = new DartMethodInfo();
+ methodInfo.setParametersCloseParen(methodNode.getFunction().getParametersCloseParen());
methodInfo.setSourceRangeStart(methodNode.getSourceInfo().getOffset());
methodInfo.setSourceRangeEnd(methodNode.getSourceInfo().getEnd());
captureDartDoc(methodNode, methodInfo);
@@ -503,6 +505,7 @@ public class CompilationUnitImpl extends SourceFileElementImpl<CompilationUnit>
DartFunctionImpl functionImpl = new DartFunctionImpl(parentElement, node.getFunctionName());
functionImpl.occurrenceCount = functionCount++;
DartFunctionInfo functionInfo = new DartFunctionInfo();
+ functionInfo.setParametersCloseParen(node.getFunction().getParametersCloseParen());
functionInfo.setSourceRangeStart(node.getSourceInfo().getOffset());
functionInfo.setSourceRangeEnd(node.getSourceInfo().getEnd());
// remember visibility range

Powered by Google App Engine
This is Rietveld 408576698