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

Side by Side Diff: tests/compiler/dart2js/backend_dart/dart_backend_test.dart

Issue 1383483006: Extract DiagnosticReporter implementation from Compiler. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fixes after rebase. Created 5 years, 2 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 import 'dart:async'; 6 import 'dart:async';
7 import "package:async_helper/async_helper.dart"; 7 import "package:async_helper/async_helper.dart";
8 import '../mock_compiler.dart'; 8 import '../mock_compiler.dart';
9 import '../mock_libraries.dart'; 9 import '../mock_libraries.dart';
10 import '../output_collector.dart'; 10 import '../output_collector.dart';
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 ElementAst operator[](AstElement element) { 607 ElementAst operator[](AstElement element) {
608 return new ElementAst(element.resolvedAst.node, 608 return new ElementAst(element.resolvedAst.node,
609 element.resolvedAst.elements); 609 element.resolvedAst.elements);
610 } 610 }
611 611
612 noSuchMethod(Invocation invocation) => throw 'unimplemented method'; 612 noSuchMethod(Invocation invocation) => throw 'unimplemented method';
613 } 613 }
614 614
615 PlaceholderCollector collectPlaceholders(compiler, element) { 615 PlaceholderCollector collectPlaceholders(compiler, element) {
616 DartBackend backend = compiler.backend; 616 DartBackend backend = compiler.backend;
617 return new PlaceholderCollector(compiler, 617 return new PlaceholderCollector(
618 compiler.reporter,
618 backend.mirrorRenamer, 619 backend.mirrorRenamer,
619 new Set<String>(), 620 new Set<String>(),
620 new DynoMap(compiler), 621 new DynoMap(compiler),
621 compiler.mainFunction) 622 compiler.mainFunction)
622 ..collect(element); 623 ..collect(element);
623 } 624 }
624 625
625 testLocalFunctionPlaceholder() { 626 testLocalFunctionPlaceholder() {
626 var src = ''' 627 var src = '''
627 main() { 628 main() {
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 testParametersMinified(); 1108 testParametersMinified();
1108 testDeclarationTypePlaceholders(); 1109 testDeclarationTypePlaceholders();
1109 testPlatformLibraryMemberNamesAreFixed(); 1110 testPlatformLibraryMemberNamesAreFixed();
1110 testConflictsWithCoreLib(); 1111 testConflictsWithCoreLib();
1111 testUnresolvedNamedConstructor1(); 1112 testUnresolvedNamedConstructor1();
1112 testUnresolvedNamedConstructor2(); 1113 testUnresolvedNamedConstructor2();
1113 testUnresolvedNamedConstructor3(); 1114 testUnresolvedNamedConstructor3();
1114 testClassAndNamedMixinDeclarations(); 1115 testClassAndNamedMixinDeclarations();
1115 } 1116 }
1116 1117
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/analyze_unused_dart2js_test.dart ('k') | tests/compiler/dart2js/backend_dart/dart_printer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698