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

Unified Diff: pkg/analyzer/lib/src/fasta/mock_element.dart

Issue 2882893002: Store Typedef(s) in kernel when parsing with Fasta, deserilize in DillLibraryBuilder. (Closed)
Patch Set: Add the new file. Created 3 years, 7 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: pkg/analyzer/lib/src/fasta/mock_element.dart
diff --git a/pkg/analyzer/lib/src/fasta/mock_element.dart b/pkg/analyzer/lib/src/fasta/mock_element.dart
index f4404ae775c59553c7519edd9ac8bd43e4ba7fb8..c55c6279dc6179563a0940bde6b4b370c569383f 100644
--- a/pkg/analyzer/lib/src/fasta/mock_element.dart
+++ b/pkg/analyzer/lib/src/fasta/mock_element.dart
@@ -347,6 +347,17 @@ abstract class MockFunctionElement extends MockElement
FunctionDeclaration computeNode() => internalError("not supported.");
}
+abstract class MockFunctionTypeAliasElement extends MockElement
+ implements FunctionTypeAliasElement {
+ MockFunctionTypeAliasElement() : super(ElementKind.FUNCTION_TYPE_ALIAS);
+
+ CompilationUnitElement get enclosingElement {
+ return internalError("not supported.");
+ }
+
+ TypeAlias computeNode() => internalError("not supported.");
+}
+
abstract class MockParameterElement extends MockElement
implements ParameterElement {
MockParameterElement() : super(ElementKind.PARAMETER);
« no previous file with comments | « pkg/analyzer/lib/src/fasta/element_store.dart ('k') | pkg/front_end/lib/src/fasta/dill/dill_library_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698