| 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('frog_leg'); | 5 #library('frog_leg'); |
| 6 | 6 |
| 7 #import('../../lib/uri/uri.dart'); | 7 #import('../../lib/uri/uri.dart'); |
| 8 #import('../../utils/compiler/source_file.dart'); | 8 #import('source_file.dart'); |
| 9 #import('../lang.dart', prefix: 'frog'); | 9 #import('../lang.dart', prefix: 'frog'); |
| 10 #import('api.dart', prefix: 'api'); | 10 #import('api.dart', prefix: 'api'); |
| 11 #import('io/io.dart', prefix: 'io'); | 11 #import('io/io.dart', prefix: 'io'); |
| 12 | 12 |
| 13 String relativize(Uri base, Uri uri) { | 13 String relativize(Uri base, Uri uri) { |
| 14 if (base.scheme == 'file' && | 14 if (base.scheme == 'file' && |
| 15 base.scheme == uri.scheme && | 15 base.scheme == uri.scheme && |
| 16 base.userInfo == uri.userInfo && | 16 base.userInfo == uri.userInfo && |
| 17 base.domain == uri.domain && | 17 base.domain == uri.domain && |
| 18 base.port == uri.port && | 18 base.port == uri.port && |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 world.legCode = code; | 91 world.legCode = code; |
| 92 world.jsBytesWritten = code.length; | 92 world.jsBytesWritten = code.length; |
| 93 return true; | 93 return true; |
| 94 } | 94 } |
| 95 | 95 |
| 96 class AbortLeg { | 96 class AbortLeg { |
| 97 final message; | 97 final message; |
| 98 AbortLeg(this.message); | 98 AbortLeg(this.message); |
| 99 toString() => 'Aborted due to --throw-on-error: $message'; | 99 toString() => 'Aborted due to --throw-on-error: $message'; |
| 100 } | 100 } |
| OLD | NEW |