Index: pkg/analyzer/lib/src/fasta/element_store.dart |
diff --git a/pkg/analyzer/lib/src/fasta/element_store.dart b/pkg/analyzer/lib/src/fasta/element_store.dart |
index c6a1049bb5dbdbbba37df03c3338bdd2b176f55f..537bc9011b6183488931b0e92686bee80a56c251 100644 |
--- a/pkg/analyzer/lib/src/fasta/element_store.dart |
+++ b/pkg/analyzer/lib/src/fasta/element_store.dart |
@@ -79,6 +79,8 @@ class ElementStoreImplementation implements ElementStore { |
do { |
if (builder is ClassBuilder) { |
elements[builder] = new KernelClassElement(builder); |
+ } else if (builder is KernelFunctionTypeAliasBuilder) { |
+ elements[builder] = new KernelFunctionTypeAliasElement(builder); |
} else if (builder is DillMemberBuilder) { |
Member member = builder.member; |
if (member is Field) {} else if (member is Procedure) { |
@@ -289,6 +291,27 @@ class KernelClassElement extends MockClassElement { |
} |
} |
+class KernelFunctionTypeAliasElement extends MockFunctionTypeAliasElement { |
+ final KernelFunctionTypeAliasBuilder builder; |
+ |
+ KernelFunctionTypeAliasElement(this.builder); |
+ |
+ @override |
+ analyzer.DartType get returnType { |
+ return internalError("not supported."); |
+ } |
+ |
+ @override |
+ analyzer.FunctionType get type { |
+ return internalError("not supported."); |
+ } |
+ |
+ @override |
+ List<TypeParameterElement> get typeParameters { |
+ return internalError("not supported."); |
+ } |
+} |
+ |
class KernelInterfaceType extends MockInterfaceType { |
final KernelClassElement element; |