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

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

Issue 824103005: Revert "Remove Compiler.assembledCode." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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})
80 : sourceFiles = new Map<String, SourceFile>(), 79 : sourceFiles = new Map<String, SourceFile>(),
81 super(enableTypeAssertions: enableTypeAssertions, 80 super(enableTypeAssertions: enableTypeAssertions,
82 enableMinification: enableMinification, 81 enableMinification: enableMinification,
83 enableConcreteTypeInference: enableConcreteTypeInference, 82 enableConcreteTypeInference: enableConcreteTypeInference,
84 maxConcreteTypeSize: maxConcreteTypeSize, 83 maxConcreteTypeSize: maxConcreteTypeSize,
85 disableTypeInferenceFlag: disableTypeInference, 84 disableTypeInferenceFlag: disableTypeInference,
86 analyzeAllFlag: analyzeAll, 85 analyzeAllFlag: analyzeAll,
87 analyzeOnly: analyzeOnly, 86 analyzeOnly: analyzeOnly,
88 emitJavaScript: emitJavaScript, 87 emitJavaScript: emitJavaScript,
89 preserveComments: preserveComments, 88 preserveComments: preserveComments,
90 trustTypeAnnotations: trustTypeAnnotations, 89 trustTypeAnnotations: trustTypeAnnotations,
91 showPackageWarnings: true, 90 showPackageWarnings: true,
92 enableEnums: enableEnums, 91 enableEnums: enableEnums) {
93 outputProvider: outputProvider) {
94 this.disableInlining = disableInlining; 92 this.disableInlining = disableInlining;
95 93
96 deferredLoadTask = new MockDeferredLoadTask(this); 94 deferredLoadTask = new MockDeferredLoadTask(this);
97 95
98 clearMessages(); 96 clearMessages();
99 97
100 registerSource(Compiler.DART_CORE, 98 registerSource(Compiler.DART_CORE,
101 buildLibrarySource(DEFAULT_CORE_LIBRARY, coreSource)); 99 buildLibrarySource(DEFAULT_CORE_LIBRARY, coreSource));
102 registerSource(PATCH_CORE, DEFAULT_PATCH_CORE_SOURCE); 100 registerSource(PATCH_CORE, DEFAULT_PATCH_CORE_SOURCE);
103 101
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 MockElement(Element enclosingElement) 393 MockElement(Element enclosingElement)
396 : super('', ElementKind.FUNCTION, Modifiers.EMPTY, 394 : super('', ElementKind.FUNCTION, Modifiers.EMPTY,
397 enclosingElement, false); 395 enclosingElement, false);
398 396
399 get node => null; 397 get node => null;
400 398
401 parseNode(_) => null; 399 parseNode(_) => null;
402 400
403 bool get hasNode => false; 401 bool get hasNode => false;
404 } 402 }
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