Chromium Code Reviews

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

Issue 8914015: Bug fix for http://code.google.com/p/dart/issues/detail?id=840 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/CompilationUnitImpl.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/CompilationUnitImpl.java (revision 2438)
+++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/model/CompilationUnitImpl.java (working copy)
@@ -286,8 +286,7 @@
@Override
public Void visitMethodDefinition(DartMethodDefinition node) {
DartExpression functionNameNode = node.getName();
- String functionName = functionNameNode == null ? null
- : ((DartIdentifier) functionNameNode).getTargetName();
+ String functionName = functionNameNode == null ? null : extractName(functionNameNode);
if (com.google.dart.tools.core.model.DartFunction.MAIN.equals(functionName)) {
definesLibrary = true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine