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 mirrors; | 5 #library('mirrors'); |
6 | 6 |
7 import 'dart:io'; | 7 #import('dart:io'); |
8 import 'dart:uri'; | 8 #import('dart:uri'); |
9 | 9 |
10 // TODO(rnystrom): Use "package:" URL (#4968). | 10 // TODO(rnystrom): Use "package:" URL (#4968). |
11 import 'src/mirrors/dart2js_mirror.dart'; | 11 #import('src/mirrors/dart2js_mirror.dart'); |
12 | 12 |
13 /** | 13 /** |
14 * [Compilation] encapsulates the compilation of a program. | 14 * [Compilation] encapsulates the compilation of a program. |
15 */ | 15 */ |
16 class Compilation { | 16 class Compilation { |
17 /** | 17 /** |
18 * Creates a new compilation which has [script] as its entry point. | 18 * Creates a new compilation which has [script] as its entry point. |
19 */ | 19 */ |
20 factory Compilation(Path script, | 20 factory Compilation(Path script, |
21 Path libraryRoot, | 21 Path libraryRoot, |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 /** | 495 /** |
496 * Returns the URI where the source originated. | 496 * Returns the URI where the source originated. |
497 */ | 497 */ |
498 Uri get uri; | 498 Uri get uri; |
499 | 499 |
500 /** | 500 /** |
501 * Returns the text of this source. | 501 * Returns the text of this source. |
502 */ | 502 */ |
503 String get text; | 503 String get text; |
504 } | 504 } |
OLD | NEW |