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

Unified Diff: pkg/compiler/lib/src/serialization/modelz.dart

Issue 1939703002: Don't crash on deserialized type inference. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments + minor fix. Created 4 years, 8 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/compiler/lib/src/serialization/modelz.dart
diff --git a/pkg/compiler/lib/src/serialization/modelz.dart b/pkg/compiler/lib/src/serialization/modelz.dart
index af70b04bb514c9a1300c7c794d03ec35aeb4add4..8927cb5f816802fde2b76e452fdeac081493743a 100644
--- a/pkg/compiler/lib/src/serialization/modelz.dart
+++ b/pkg/compiler/lib/src/serialization/modelz.dart
@@ -1861,8 +1861,13 @@ abstract class ParameterElementZ extends DeserializedElementZ
@override
FunctionSignature get functionSignature => _unsupported('functionSignature');
+ // TODO(johnniwinther): HACK. Remove [initializer] and [node] on
+ // [ParameterElementZ] when the inference does need these.
@override
- Expression get initializer => _unsupported('initializer');
+ Expression get initializer => null;
+
+ @override
+ Node get node => null;
@override
bool get isNamed => _decoder.getBool(Key.IS_NAMED);
« no previous file with comments | « pkg/compiler/lib/src/resolution/tree_elements.dart ('k') | pkg/compiler/lib/src/serialization/resolved_ast_serialization.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698