OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 library fletchc.fletch_compiler_implementation; | 5 library fletchc.fletch_compiler_implementation; |
6 | 6 |
7 import 'dart:async' show | 7 import 'dart:async' show |
8 EventSink; | 8 EventSink; |
9 | 9 |
10 import 'package:compiler/compiler_new.dart' as api; | 10 import 'package:compiler/compiler_new.dart' as api; |
11 | 11 |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 } | 277 } |
278 } | 278 } |
279 | 279 |
280 SourceFile getSourceFile(api.CompilerInput provider, Uri uri) { | 280 SourceFile getSourceFile(api.CompilerInput provider, Uri uri) { |
281 if (provider is SourceFileProvider) { | 281 if (provider is SourceFileProvider) { |
282 return provider.getSourceFile(uri); | 282 return provider.getSourceFile(uri); |
283 } else { | 283 } else { |
284 return null; | 284 return null; |
285 } | 285 } |
286 } | 286 } |
OLD | NEW |