| 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;
|
| }
|
|
|