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

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

Issue 839323003: Implementation of async-await transformation on js ast. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 5 years, 10 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/async_await_js_transform_test.dart ('k') | tests/compiler/dart2js/mock_libraries.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698