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

Side by Side Diff: tests/compiler/dart2js/serialization_test.dart

Issue 1927963002: Support compilation of Hello World (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fixes Created 4 years, 7 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
« no previous file with comments | « tests/compiler/dart2js/serialization_compilation_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 library dart2js.serialization_test; 5 library dart2js.serialization_test;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 import 'memory_compiler.dart'; 8 import 'memory_compiler.dart';
9 import 'package:async_helper/async_helper.dart'; 9 import 'package:async_helper/async_helper.dart';
10 import 'package:compiler/src/commandline_options.dart'; 10 import 'package:compiler/src/commandline_options.dart';
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 class ElementPropertyEquivalence extends BaseElementVisitor<dynamic, Element> { 236 class ElementPropertyEquivalence extends BaseElementVisitor<dynamic, Element> {
237 const ElementPropertyEquivalence(); 237 const ElementPropertyEquivalence();
238 238
239 void visit(Element element1, Element element2) { 239 void visit(Element element1, Element element2) {
240 if (element1 == null && element2 == null) return; 240 if (element1 == null && element2 == null) return;
241 element1 = element1.declaration; 241 element1 = element1.declaration;
242 element2 = element2.declaration; 242 element2 = element2.declaration;
243 if (element1 == element2) return; 243 if (element1 == element2) return;
244 check(element1, element2, 'kind', element1.kind, element2.kind); 244 check(element1, element2, 'kind', element1.kind, element2.kind);
245 element1.accept(this, element2); 245 element1.accept(this, element2);
246 check(element1, element2, 'isSynthesized',
247 element1.isSynthesized, element2.isSynthesized);
246 } 248 }
247 249
248 @override 250 @override
249 void visitElement(Element e, Element arg) { 251 void visitElement(Element e, Element arg) {
250 throw new UnsupportedError("Unsupported element $e"); 252 throw new UnsupportedError("Unsupported element $e");
251 } 253 }
252 254
253 @override 255 @override
254 void visitLibraryElement(LibraryElement element1, LibraryElement element2) { 256 void visitLibraryElement(LibraryElement element1, LibraryElement element2) {
255 checkElementIdentities(null, null, null, element1, element2); 257 checkElementIdentities(null, null, null, element1, element2);
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 void visitPrefixElement(PrefixElement element1, PrefixElement element2) { 695 void visitPrefixElement(PrefixElement element1, PrefixElement element2) {
694 check( 696 check(
695 element1, element2, 'isDeferred', 697 element1, element2, 'isDeferred',
696 element1.isDeferred, element2.isDeferred); 698 element1.isDeferred, element2.isDeferred);
697 checkElementIdentities( 699 checkElementIdentities(
698 element1, element2, 'importedLibrary', 700 element1, element2, 'importedLibrary',
699 element1.deferredImport, element2.deferredImport); 701 element1.deferredImport, element2.deferredImport);
700 // TODO(johnniwinther): Check members. 702 // TODO(johnniwinther): Check members.
701 } 703 }
702 } 704 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/serialization_compilation_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698