OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 source_file_provider; | 5 library source_file_provider; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:uri'; | |
9 import 'dart:io'; | 8 import 'dart:io'; |
10 import 'dart:utf'; | 9 import 'dart:utf'; |
11 | 10 |
12 import '../compiler.dart' as api show Diagnostic; | 11 import '../compiler.dart' as api show Diagnostic; |
13 import 'dart2js.dart' show AbortLeg; | 12 import 'dart2js.dart' show AbortLeg; |
14 import 'colors.dart' as colors; | 13 import 'colors.dart' as colors; |
15 import 'source_file.dart'; | 14 import 'source_file.dart'; |
16 import 'filenames.dart'; | 15 import 'filenames.dart'; |
17 import 'util/uri_extras.dart'; | 16 import 'util/uri_extras.dart'; |
18 | 17 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 if (fatal && throwOnError) { | 117 if (fatal && throwOnError) { |
119 isAborting = true; | 118 isAborting = true; |
120 throw new AbortLeg(message); | 119 throw new AbortLeg(message); |
121 } | 120 } |
122 } | 121 } |
123 | 122 |
124 void call(Uri uri, int begin, int end, String message, api.Diagnostic kind) { | 123 void call(Uri uri, int begin, int end, String message, api.Diagnostic kind) { |
125 return diagnosticHandler(uri, begin, end, message, kind); | 124 return diagnosticHandler(uri, begin, end, message, kind); |
126 } | 125 } |
127 } | 126 } |
OLD | NEW |