OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 /// Additions to Fasta for generating .dill (Kernel IR) files with dart2js patch | 5 /// Additions to Fasta for generating .dill (Kernel IR) files with dart2js patch |
6 /// files and native hooks. | 6 /// files and native hooks. |
7 library compiler.src.kernel.fasta_support; | 7 library compiler.src.kernel.fasta_support; |
8 | 8 |
9 // TODO(sigmund): get rid of this file. Fasta should be agnostic of the | 9 // TODO(sigmund): get rid of this file. Fasta should be agnostic of the |
10 // target platform, at which point this should not be necessary. In particular, | 10 // target platform, at which point this should not be necessary. In particular, |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 Token skipNativeClause(Token token) => _skipNative(token); | 90 Token skipNativeClause(Token token) => _skipNative(token); |
91 | 91 |
92 @override | 92 @override |
93 String extractNativeMethodName(Token token) => null; | 93 String extractNativeMethodName(Token token) => null; |
94 | 94 |
95 @override | 95 @override |
96 void loadExtraRequiredLibraries(Loader loader) => _loadExtras(loader); | 96 void loadExtraRequiredLibraries(Loader loader) => _loadExtras(loader); |
97 | 97 |
98 @override | 98 @override |
99 void runBuildTransformations() {} | 99 void runBuildTransformations() {} |
100 | |
101 @override | |
102 void runLinkTransformations(_) {} | |
103 } | 100 } |
104 | 101 |
105 /// Specializes [DillTarget] to build kernel for dart2js: JS-specific libraries | 102 /// Specializes [DillTarget] to build kernel for dart2js: JS-specific libraries |
106 /// are included in the SDK, and native clauses have no string parameter. | 103 /// are included in the SDK, and native clauses have no string parameter. |
107 class DillTargetForDart2js extends DillTarget { | 104 class DillTargetForDart2js extends DillTarget { |
108 DillTargetForDart2js(Ticker ticker, TranslateUri uriTranslator) | 105 DillTargetForDart2js(Ticker ticker, TranslateUri uriTranslator) |
109 : super(ticker, uriTranslator); | 106 : super(ticker, uriTranslator); |
110 | 107 |
111 @override | 108 @override |
112 Token skipNativeClause(Token token) => _skipNative(token); | 109 Token skipNativeClause(Token token) => _skipNative(token); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 'dart:html_common', | 155 'dart:html_common', |
159 'dart:indexed_db', | 156 'dart:indexed_db', |
160 'dart:js', | 157 'dart:js', |
161 'dart:js_util', | 158 'dart:js_util', |
162 'dart:mirrors', | 159 'dart:mirrors', |
163 'dart:svg', | 160 'dart:svg', |
164 'dart:web_audio', | 161 'dart:web_audio', |
165 'dart:web_gl', | 162 'dart:web_gl', |
166 'dart:web_sql', | 163 'dart:web_sql', |
167 ]; | 164 ]; |
OLD | NEW |