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('../../utils/uri/uri.dart'); | 7 #import('../../lib/uri/uri.dart'); |
8 #import('../lang.dart', prefix: 'frog'); | 8 #import('../lang.dart', prefix: 'frog'); |
9 #import('elements/elements.dart'); | 9 #import('elements/elements.dart'); |
10 #import('io/io.dart', prefix: 'io'); | 10 #import('io/io.dart', prefix: 'io'); |
11 #import('leg.dart'); | 11 #import('leg.dart'); |
12 #import('tree/tree.dart'); | 12 #import('tree/tree.dart'); |
13 | 13 |
14 bool compile(frog.World world) { | 14 bool compile(frog.World world) { |
15 final throwOnError = frog.options.throwOnErrors; | 15 final throwOnError = frog.options.throwOnErrors; |
16 final compiler = new WorldCompiler(world, throwOnError); | 16 final compiler = new WorldCompiler(world, throwOnError); |
17 Uri cwd = new Uri(scheme: 'file', path: compiler.currentDirectory); | 17 Uri cwd = new Uri(scheme: 'file', path: compiler.currentDirectory); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 } | 115 } |
116 super.cancel(reason, node, token, instruction); | 116 super.cancel(reason, node, token, instruction); |
117 } | 117 } |
118 } | 118 } |
119 | 119 |
120 class AbortLeg { | 120 class AbortLeg { |
121 final message; | 121 final message; |
122 AbortLeg(this.message); | 122 AbortLeg(this.message); |
123 toString() => 'Aborted due to --throw-on-error: $message'; | 123 toString() => 'Aborted due to --throw-on-error: $message'; |
124 } | 124 } |
OLD | NEW |