| OLD | NEW |
| 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("builtin"); | 5 #library("builtin"); |
| 6 #import("dart:uri"); |
| 6 | 7 |
| 7 void print(arg) { | 8 void print(arg) { |
| 8 _Logger._printString(arg.toString()); | 9 _Logger._printString(arg.toString()); |
| 9 } | 10 } |
| 10 | 11 |
| 11 void exit(int status) { | 12 void exit(int status) { |
| 12 if (status is !int) { | 13 if (status is !int) { |
| 13 throw new IllegalArgumentException("int status expected"); | 14 throw new IllegalArgumentException("int status expected"); |
| 14 } | 15 } |
| 15 _exit(status); | 16 _exit(status); |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 var wrong = 'package://$path'; | 138 var wrong = 'package://$path'; |
| 138 | 139 |
| 139 throw "URIs using the 'package:' scheme should look like " + | 140 throw "URIs using the 'package:' scheme should look like " + |
| 140 "'$right', not '$wrong'."; | 141 "'$right', not '$wrong'."; |
| 141 } | 142 } |
| 142 | 143 |
| 143 var path = _entrypoint.resolve('packages/${uri.path}').path; | 144 var path = _entrypoint.resolve('packages/${uri.path}').path; |
| 144 _logResolution("# Package: $path"); | 145 _logResolution("# Package: $path"); |
| 145 return path; | 146 return path; |
| 146 } | 147 } |
| OLD | NEW |