Index: pkg/compiler/lib/src/serialization/resolved_ast_serialization.dart |
diff --git a/pkg/compiler/lib/src/serialization/resolved_ast_serialization.dart b/pkg/compiler/lib/src/serialization/resolved_ast_serialization.dart |
index ff8eef48b352e29f9ddfefa90d32b915f191dd2b..bca6d9e14de08ee0c549e061bebbe20bf5e6aadb 100644 |
--- a/pkg/compiler/lib/src/serialization/resolved_ast_serialization.dart |
+++ b/pkg/compiler/lib/src/serialization/resolved_ast_serialization.dart |
@@ -108,10 +108,7 @@ class ResolvedAstSerializer extends Visitor { |
/// Serialize [ResolvedAst] that is defined in terms of an AST together with |
/// [TreeElements]. |
void serializeParsed() { |
- objectEncoder.setUri( |
- Key.URI, |
- elements.analyzedElement.compilationUnit.script.resourceUri, |
- elements.analyzedElement.compilationUnit.script.resourceUri); |
+ objectEncoder.setUri(Key.URI, resolvedAst.sourceUri, resolvedAst.sourceUri); |
AstKind kind; |
if (element.enclosingClass is EnumClassElement) { |
if (element.name == 'index') { |
@@ -515,7 +512,7 @@ class ResolvedAstDeserializer { |
reporter.internalError( |
element, |
"No token found for $element in " |
- "${objectDecoder.getUri(Key.URI)} @ $getOrSetOffset"); |
+ "${uri} @ $getOrSetOffset"); |
} |
} |
return doParse((parser) { |