Index: pkg/compiler/lib/src/serialization/equivalence.dart |
diff --git a/pkg/compiler/lib/src/serialization/equivalence.dart b/pkg/compiler/lib/src/serialization/equivalence.dart |
index be28121447478a00f77bd9d59506b7b5bb9cae63..b4b5db3e30100ae284a2bd9faca00d04cc740117 100644 |
--- a/pkg/compiler/lib/src/serialization/equivalence.dart |
+++ b/pkg/compiler/lib/src/serialization/equivalence.dart |
@@ -243,6 +243,8 @@ class ElementIdentityEquivalence extends BaseElementVisitor<bool, Element> { |
CompilationUnitElement element1, CompilationUnitElement element2) { |
return strategy.test( |
element1, element2, 'name', element1.name, element2.name) && |
+ strategy.test(element1, element2, 'script.resourceUri', |
+ element1.script.resourceUri, element2.script.resourceUri) && |
visit(element1.library, element2.library); |
} |