| Index: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/utilities/ast/DartElementLocatorTest.java
|
| diff --git a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/utilities/ast/DartElementLocatorTest.java b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/utilities/ast/DartElementLocatorTest.java
|
| index 3b5ed0b22376bbb275c260e38bdbc110d43453ea..eb6c8a208e5d58ab6eb757bd3eed681b64dcf374 100644
|
| --- a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/utilities/ast/DartElementLocatorTest.java
|
| +++ b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/utilities/ast/DartElementLocatorTest.java
|
| @@ -18,6 +18,7 @@ import com.google.common.collect.Lists;
|
| import com.google.dart.compiler.DartCompilationError;
|
| import com.google.dart.compiler.ast.DartUnit;
|
| import com.google.dart.tools.core.model.CompilationUnit;
|
| +import com.google.dart.tools.core.model.DartClassTypeAlias;
|
| import com.google.dart.tools.core.model.DartElement;
|
| import com.google.dart.tools.core.model.DartFunction;
|
| import com.google.dart.tools.core.model.DartImport;
|
| @@ -97,6 +98,19 @@ public class DartElementLocatorTest extends TestCase {
|
| }
|
| }
|
|
|
| + public void test_ClassTypeAlias_topLevel() throws Exception {
|
| + testElementLocator(
|
| + formatLines(
|
| + "// filler filler filler filler filler filler filler filler filler filler filler",
|
| + "class A {}",
|
| + "typedef B = Object with A;",
|
| + "foo(B b) {}"),
|
| + "B b)",
|
| + DartClassTypeAlias.class,
|
| + "B = Object",
|
| + 1);
|
| + }
|
| +
|
| public void test_DartFunction_onReference() throws Exception {
|
| testElementLocator(
|
| formatLines(
|
|
|