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('mock_compiler'); | 5 #library('mock_compiler'); |
6 | 6 |
7 #import("../../../../utils/uri/uri.dart"); | 7 #import("../../../../lib/uri/uri.dart"); |
8 | 8 |
9 #import("../../../leg/leg.dart"); | 9 #import("../../../leg/leg.dart"); |
10 #import("../../../leg/elements/elements.dart"); | 10 #import("../../../leg/elements/elements.dart"); |
11 #import("../../../leg/tree/tree.dart"); | 11 #import("../../../leg/tree/tree.dart"); |
12 #import("../../../leg/util/util.dart"); | 12 #import("../../../leg/util/util.dart"); |
13 #import("parser_helper.dart"); | 13 #import("parser_helper.dart"); |
14 | 14 |
15 class WarningMessage { | 15 class WarningMessage { |
16 Node node; | 16 Node node; |
17 Message message; | 17 Message message; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 }); | 147 }); |
148 } | 148 } |
149 } | 149 } |
150 | 150 |
151 LibraryElement mockLibrary(Compiler compiler, String source) { | 151 LibraryElement mockLibrary(Compiler compiler, String source) { |
152 Uri uri = new Uri(scheme: "source"); | 152 Uri uri = new Uri(scheme: "source"); |
153 var library = new LibraryElement(new Script(uri, new MockFile(source))); | 153 var library = new LibraryElement(new Script(uri, new MockFile(source))); |
154 importLibrary(library, compiler.coreLibrary, compiler); | 154 importLibrary(library, compiler.coreLibrary, compiler); |
155 return library; | 155 return library; |
156 } | 156 } |
OLD | NEW |