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

Side by Side Diff: pkg/compiler/lib/src/kernel/fasta_support.dart

Issue 2898183002: Prepare for development branch by updating externally-used API. (Closed)
Patch Set: Minor tweaks found during testing. Created 3 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
OLDNEW
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 /// uses it a slightly different form. We hope to remove this syntax in our 127 /// uses it a slightly different form. We hope to remove this syntax in our
128 /// dart2js patch files and replace it with the external modifier. 128 /// dart2js patch files and replace it with the external modifier.
129 Token _skipNative(Token token) { 129 Token _skipNative(Token token) {
130 if (!optional("native", token)) return null; 130 if (!optional("native", token)) return null;
131 if (!optional(";", token.next)) return null; 131 if (!optional(";", token.next)) return null;
132 return token; 132 return token;
133 } 133 }
134 134
135 void _loadExtras(Loader loader) { 135 void _loadExtras(Loader loader) {
136 for (String uri in _extraDart2jsLibraries) { 136 for (String uri in _extraDart2jsLibraries) {
137 loader.read(Uri.parse(uri)); 137 loader.read(Uri.parse(uri), -1);
138 } 138 }
139 } 139 }
140 140
141 const _extraDart2jsLibraries = const <String>[ 141 const _extraDart2jsLibraries = const <String>[
142 'dart:_chrome', 142 'dart:_chrome',
143 'dart:_foreign_helper', 143 'dart:_foreign_helper',
144 'dart:_interceptors', 144 'dart:_interceptors',
145 'dart:_internal', 145 'dart:_internal',
146 'dart:_isolate_helper', 146 'dart:_isolate_helper',
147 'dart:_js_embedded_names', 147 'dart:_js_embedded_names',
148 'dart:_js_helper', 148 'dart:_js_helper',
149 'dart:_js_mirrors', 149 'dart:_js_mirrors',
150 'dart:_js_names', 150 'dart:_js_names',
151 'dart:_native_typed_data', 151 'dart:_native_typed_data',
152 'dart:async', 152 'dart:async',
153 'dart:collection', 153 'dart:collection',
154 'dart:html', 154 'dart:html',
155 'dart:html_common', 155 'dart:html_common',
156 'dart:indexed_db', 156 'dart:indexed_db',
157 'dart:js', 157 'dart:js',
158 'dart:js_util', 158 'dart:js_util',
159 'dart:mirrors', 159 'dart:mirrors',
160 'dart:svg', 160 'dart:svg',
161 'dart:web_audio', 161 'dart:web_audio',
162 'dart:web_gl', 162 'dart:web_gl',
163 'dart:web_sql', 163 'dart:web_sql',
164 ]; 164 ];
OLDNEW
« no previous file with comments | « pkg/analyzer/tool/summary/mini_ast.dart ('k') | pkg/front_end/lib/src/fasta/dill/dill_loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698