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

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

Issue 832363002: Remove Compiler.assembledCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix unittest Created 5 years, 11 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 | Annotate | Revision Log
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 library mock_compiler; 5 library mock_compiler;
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:collection'; 9 import 'dart:collection';
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 bool analyzeAll: false, 68 bool analyzeAll: false,
69 bool analyzeOnly: false, 69 bool analyzeOnly: false,
70 bool emitJavaScript: true, 70 bool emitJavaScript: true,
71 bool preserveComments: false, 71 bool preserveComments: false,
72 // Our unit tests check code generation output that is 72 // Our unit tests check code generation output that is
73 // affected by inlining support. 73 // affected by inlining support.
74 bool disableInlining: true, 74 bool disableInlining: true,
75 bool trustTypeAnnotations: false, 75 bool trustTypeAnnotations: false,
76 bool enableEnums: false, 76 bool enableEnums: false,
77 int this.expectedWarnings, 77 int this.expectedWarnings,
78 int this.expectedErrors}) 78 int this.expectedErrors,
79 api.CompilerOutputProvider outputProvider})
79 : sourceFiles = new Map<String, SourceFile>(), 80 : sourceFiles = new Map<String, SourceFile>(),
80 super(enableTypeAssertions: enableTypeAssertions, 81 super(enableTypeAssertions: enableTypeAssertions,
81 enableMinification: enableMinification, 82 enableMinification: enableMinification,
82 enableConcreteTypeInference: enableConcreteTypeInference, 83 enableConcreteTypeInference: enableConcreteTypeInference,
83 maxConcreteTypeSize: maxConcreteTypeSize, 84 maxConcreteTypeSize: maxConcreteTypeSize,
84 disableTypeInferenceFlag: disableTypeInference, 85 disableTypeInferenceFlag: disableTypeInference,
85 analyzeAllFlag: analyzeAll, 86 analyzeAllFlag: analyzeAll,
86 analyzeOnly: analyzeOnly, 87 analyzeOnly: analyzeOnly,
87 emitJavaScript: emitJavaScript, 88 emitJavaScript: emitJavaScript,
88 preserveComments: preserveComments, 89 preserveComments: preserveComments,
89 trustTypeAnnotations: trustTypeAnnotations, 90 trustTypeAnnotations: trustTypeAnnotations,
90 showPackageWarnings: true, 91 showPackageWarnings: true,
91 enableEnums: enableEnums) { 92 enableEnums: enableEnums,
93 outputProvider: outputProvider) {
92 this.disableInlining = disableInlining; 94 this.disableInlining = disableInlining;
93 95
94 deferredLoadTask = new MockDeferredLoadTask(this); 96 deferredLoadTask = new MockDeferredLoadTask(this);
95 97
96 clearMessages(); 98 clearMessages();
97 99
98 registerSource(Compiler.DART_CORE, 100 registerSource(Compiler.DART_CORE,
99 buildLibrarySource(DEFAULT_CORE_LIBRARY, coreSource)); 101 buildLibrarySource(DEFAULT_CORE_LIBRARY, coreSource));
100 registerSource(PATCH_CORE, DEFAULT_PATCH_CORE_SOURCE); 102 registerSource(PATCH_CORE, DEFAULT_PATCH_CORE_SOURCE);
101 103
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 MockElement(Element enclosingElement) 395 MockElement(Element enclosingElement)
394 : super('', ElementKind.FUNCTION, Modifiers.EMPTY, 396 : super('', ElementKind.FUNCTION, Modifiers.EMPTY,
395 enclosingElement, false); 397 enclosingElement, false);
396 398
397 get node => null; 399 get node => null;
398 400
399 parseNode(_) => null; 401 parseNode(_) => null;
400 402
401 bool get hasNode => false; 403 bool get hasNode => false;
402 } 404 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/mirror_helper_rename_test.dart ('k') | tests/compiler/dart2js/output_collector.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698