OLD | NEW |
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 enableMinification: enableMinification, | 85 enableMinification: enableMinification, |
86 enableConcreteTypeInference: enableConcreteTypeInference, | 86 enableConcreteTypeInference: enableConcreteTypeInference, |
87 maxConcreteTypeSize: maxConcreteTypeSize, | 87 maxConcreteTypeSize: maxConcreteTypeSize, |
88 disableTypeInferenceFlag: disableTypeInference, | 88 disableTypeInferenceFlag: disableTypeInference, |
89 analyzeAllFlag: analyzeAll, | 89 analyzeAllFlag: analyzeAll, |
90 analyzeOnly: analyzeOnly, | 90 analyzeOnly: analyzeOnly, |
91 emitJavaScript: emitJavaScript, | 91 emitJavaScript: emitJavaScript, |
92 preserveComments: preserveComments, | 92 preserveComments: preserveComments, |
93 trustTypeAnnotations: trustTypeAnnotations, | 93 trustTypeAnnotations: trustTypeAnnotations, |
94 showPackageWarnings: true, | 94 showPackageWarnings: true, |
95 outputProvider: outputProvider, | 95 outputProvider: outputProvider) { |
96 enableAsyncAwait: enableAsyncAwait) { | |
97 this.disableInlining = disableInlining; | 96 this.disableInlining = disableInlining; |
98 | 97 |
99 deferredLoadTask = new MockDeferredLoadTask(this); | 98 deferredLoadTask = new MockDeferredLoadTask(this); |
100 | 99 |
101 clearMessages(); | 100 clearMessages(); |
102 | 101 |
103 registerSource(Compiler.DART_CORE, | 102 registerSource(Compiler.DART_CORE, |
104 buildLibrarySource(DEFAULT_CORE_LIBRARY, coreSource)); | 103 buildLibrarySource(DEFAULT_CORE_LIBRARY, coreSource)); |
105 registerSource(PATCH_CORE, DEFAULT_PATCH_CORE_SOURCE); | 104 registerSource(PATCH_CORE, DEFAULT_PATCH_CORE_SOURCE); |
106 | 105 |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 MockElement(Element enclosingElement) | 393 MockElement(Element enclosingElement) |
395 : super('', ElementKind.FUNCTION, Modifiers.EMPTY, | 394 : super('', ElementKind.FUNCTION, Modifiers.EMPTY, |
396 enclosingElement, false); | 395 enclosingElement, false); |
397 | 396 |
398 get node => null; | 397 get node => null; |
399 | 398 |
400 parseNode(_) => null; | 399 parseNode(_) => null; |
401 | 400 |
402 bool get hasNode => false; | 401 bool get hasNode => false; |
403 } | 402 } |
OLD | NEW |