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

Side by Side Diff: pkg/compiler/lib/src/serialization/equivalence.dart

Issue 2221893003: pkg/compiler: fix imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// Functions for asserting equivalence across serialization. 5 /// Functions for asserting equivalence across serialization.
6 6
7 library dart2js.serialization.equivalence; 7 library dart2js.serialization.equivalence;
8 8
9 import '../closure.dart'; 9 import '../closure.dart';
10 import '../common.dart';
11 import '../common/resolution.dart'; 10 import '../common/resolution.dart';
12 import '../constants/expressions.dart'; 11 import '../constants/expressions.dart';
13 import '../constants/values.dart'; 12 import '../constants/values.dart';
14 import '../dart_types.dart'; 13 import '../dart_types.dart';
15 import '../elements/elements.dart'; 14 import '../elements/elements.dart';
16 import '../elements/visitor.dart'; 15 import '../elements/visitor.dart';
17 import '../js_backend/backend_serialization.dart' 16 import '../js_backend/backend_serialization.dart'
18 show NativeBehaviorSerialization; 17 show NativeBehaviorSerialization;
19 import '../native/native.dart' show NativeBehavior; 18 import '../native/native.dart' show NativeBehavior;
20 import '../resolution/access_semantics.dart'; 19 import '../resolution/access_semantics.dart';
(...skipping 2005 matching lines...) Expand 10 before | Expand all | Expand 10 after
2026 } 2025 }
2027 2026
2028 bool areMetadataAnnotationsEquivalent( 2027 bool areMetadataAnnotationsEquivalent(
2029 MetadataAnnotation metadata1, MetadataAnnotation metadata2) { 2028 MetadataAnnotation metadata1, MetadataAnnotation metadata2) {
2030 if (metadata1 == metadata2) return true; 2029 if (metadata1 == metadata2) return true;
2031 if (metadata1 == null || metadata2 == null) return false; 2030 if (metadata1 == null || metadata2 == null) return false;
2032 return areElementsEquivalent( 2031 return areElementsEquivalent(
2033 metadata1.annotatedElement, metadata2.annotatedElement) && 2032 metadata1.annotatedElement, metadata2.annotatedElement) &&
2034 areConstantsEquivalent(metadata1.constant, metadata2.constant); 2033 areConstantsEquivalent(metadata1.constant, metadata2.constant);
2035 } 2034 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698