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

Side by Side Diff: tool/input_sdk/private/foreign_helper.dart

Issue 1170813008: fixes detection of SDK libraries (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: format Created 5 years, 6 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) 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 _foreign_helper; 5 library dart._foreign_helper;
6 6
7 /** 7 /**
8 * Emits a JavaScript code fragment parameterized by arguments. 8 * Emits a JavaScript code fragment parameterized by arguments.
9 * 9 *
10 * Hash characters `#` in the [codeTemplate] are replaced in left-to-right order 10 * Hash characters `#` in the [codeTemplate] are replaced in left-to-right order
11 * with expressions that contain the values of, or evaluate to, the arguments. 11 * with expressions that contain the values of, or evaluate to, the arguments.
12 * The number of hash marks must match the number or arguments. Although 12 * The number of hash marks must match the number or arguments. Although
13 * declared with arguments [arg0] through [arg2], the form actually has no limit 13 * declared with arguments [arg0] through [arg2], the form actually has no limit
14 * on the number of arguments. 14 * on the number of arguments.
15 * 15 *
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 } 287 }
288 288
289 /** 289 /**
290 * JavaScript string concatenation. Inputs must be Strings. Corresponds to the 290 * JavaScript string concatenation. Inputs must be Strings. Corresponds to the
291 * HStringConcat SSA instruction and may be constant-folded. 291 * HStringConcat SSA instruction and may be constant-folded.
292 */ 292 */
293 String JS_STRING_CONCAT(String a, String b) { 293 String JS_STRING_CONCAT(String a, String b) {
294 // This body is unused, only here for type analysis. 294 // This body is unused, only here for type analysis.
295 return JS('String', '# + #', a, b); 295 return JS('String', '# + #', a, b);
296 } 296 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698