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

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

Issue 2088233003: Serialize erroneous element and more (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 4 years, 6 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
« no previous file with comments | « pkg/compiler/lib/src/serialization/keys.dart ('k') | pkg/compiler/lib/src/serialization/system.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « pkg/compiler/lib/src/serialization/keys.dart ('k') | pkg/compiler/lib/src/serialization/system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698