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

Unified Diff: pkg/compiler/lib/src/serialization/task.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/task.dart
diff --git a/pkg/compiler/lib/src/serialization/task.dart b/pkg/compiler/lib/src/serialization/task.dart
index 0eb9db08ffbcd538900ea3fb40e8fee5be006064..1639c323667d9875b4ad7d7cfb3cc68c0c0516c4 100644
--- a/pkg/compiler/lib/src/serialization/task.dart
+++ b/pkg/compiler/lib/src/serialization/task.dart
@@ -65,11 +65,11 @@ class SerializationTask extends CompilerTask implements LibraryDeserializer {
element, context, deserializer.computeWorldImpact(element));
}
- bool hasResolvedAst(Element element) {
+ bool hasResolvedAst(ExecutableElement element) {
return deserializer != null ? deserializer.hasResolvedAst(element) : false;
}
- ResolvedAst getResolvedAst(Element element) {
+ ResolvedAst getResolvedAst(ExecutableElement element) {
return deserializer != null ? deserializer.getResolvedAst(element) : null;
}
}
@@ -102,8 +102,8 @@ class DeserializedResolutionWorkItem implements ResolutionWorkItem {
abstract class DeserializerSystem {
Future<LibraryElement> readLibrary(Uri resolvedUri);
bool isDeserialized(Element element);
- bool hasResolvedAst(Element element);
- ResolvedAst getResolvedAst(Element element);
+ bool hasResolvedAst(ExecutableElement element);
+ ResolvedAst getResolvedAst(ExecutableElement element);
bool hasResolutionImpact(Element element);
ResolutionImpact getResolutionImpact(Element element);
WorldImpact computeWorldImpact(Element element);

Powered by Google App Engine
This is Rietveld 408576698