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

Side by Side Diff: pkg/compiler/lib/src/common/backend_api.dart

Issue 1918903004: Make support for async/await syntax optional in the frontend. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add todo Created 4 years, 7 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dart2js.backend_api; 5 library dart2js.backend_api;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/codegen.dart' show CodegenImpact; 10 import '../common/codegen.dart' show CodegenImpact;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 ItemCompilationContext; 48 ItemCompilationContext;
49 49
50 abstract class Backend { 50 abstract class Backend {
51 final Compiler compiler; 51 final Compiler compiler;
52 52
53 Backend(this.compiler); 53 Backend(this.compiler);
54 54
55 /// Returns true if the backend supports reflection. 55 /// Returns true if the backend supports reflection.
56 bool get supportsReflection; 56 bool get supportsReflection;
57 57
58 /// Returns true if the backend supports reflection.
59 bool get supportsAsyncAwait;
60
58 /// The [ConstantSystem] used to interpret compile-time constants for this 61 /// The [ConstantSystem] used to interpret compile-time constants for this
59 /// backend. 62 /// backend.
60 ConstantSystem get constantSystem; 63 ConstantSystem get constantSystem;
61 64
62 /// The constant environment for the backend interpretation of compile-time 65 /// The constant environment for the backend interpretation of compile-time
63 /// constants. 66 /// constants.
64 BackendConstantEnvironment get constants; 67 BackendConstantEnvironment get constants;
65 68
66 /// The compiler task responsible for the compilation of constants for both 69 /// The compiler task responsible for the compilation of constants for both
67 /// the frontend and the backend. 70 /// the frontend and the backend.
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 } 437 }
435 } 438 }
436 439
437 /// Interface for serialization of backend specific data. 440 /// Interface for serialization of backend specific data.
438 class BackendSerialization { 441 class BackendSerialization {
439 const BackendSerialization(); 442 const BackendSerialization();
440 443
441 SerializerPlugin get serializer => const SerializerPlugin(); 444 SerializerPlugin get serializer => const SerializerPlugin();
442 DeserializerPlugin get deserializer => const DeserializerPlugin(); 445 DeserializerPlugin get deserializer => const DeserializerPlugin();
443 } 446 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698