| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Fletch 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:sdk_library_metadata/libraries.dart' show | 10 import 'package:sdk_library_metadata/libraries.dart' show |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 "convert": "convert/convert_patch.dart", | 68 "convert": "convert/convert_patch.dart", |
| 69 "core": "core/core_patch.dart", | 69 "core": "core/core_patch.dart", |
| 70 "math": "math/math_patch.dart", | 70 "math": "math/math_patch.dart", |
| 71 "async": "async/async_patch.dart", | 71 "async": "async/async_patch.dart", |
| 72 "typed_data": "typed_data/typed_data_patch.dart", | 72 "typed_data": "typed_data/typed_data_patch.dart", |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 const FLETCH_PLATFORM = 3; | 75 const FLETCH_PLATFORM = 3; |
| 76 | 76 |
| 77 const Map<String, LibraryInfo> FLETCH_LIBRARIES = const { | 77 const Map<String, LibraryInfo> FLETCH_LIBRARIES = const { |
| 78 "_fletch_system": const LibraryInfo( | 78 "fletch._system": const LibraryInfo( |
| 79 "system/system.dart", | 79 "system/system.dart", |
| 80 categories: "", | 80 categories: "", |
| 81 documented: false, | 81 documented: false, |
| 82 platforms: FLETCH_PLATFORM), | 82 platforms: FLETCH_PLATFORM), |
| 83 | 83 |
| 84 "fletch.ffi": const LibraryInfo( | 84 "fletch.ffi": const LibraryInfo( |
| 85 "ffi/ffi.dart", | 85 "ffi/ffi.dart", |
| 86 categories: "Client,Server,Embedded", | 86 categories: "Client,Server,Embedded", |
| 87 documented: false, | 87 documented: false, |
| 88 platforms: FLETCH_PLATFORM), | 88 platforms: FLETCH_PLATFORM), |
| 89 | 89 |
| 90 "fletch": const LibraryInfo( | 90 "fletch": const LibraryInfo( |
| 91 "fletch/fletch.dart", | 91 "fletch/fletch.dart", |
| 92 categories: "Client,Server,Embedded", | 92 categories: "Client,Server,Embedded", |
| 93 documented: false, | 93 documented: false, |
| 94 platforms: FLETCH_PLATFORM), | 94 platforms: FLETCH_PLATFORM), |
| 95 | 95 |
| 96 "fletch.io": const LibraryInfo( | 96 "fletch.io": const LibraryInfo( |
| 97 "io/io.dart", | 97 "io/io.dart", |
| 98 categories: "Client,Server,Embedded", | 98 categories: "Client,Server,Embedded", |
| 99 documented: false, | 99 documented: false, |
| 100 platforms: FLETCH_PLATFORM), | 100 platforms: FLETCH_PLATFORM), |
| 101 | 101 |
| 102 "system": const LibraryInfo( | 102 "fletch.service": const LibraryInfo( |
| 103 "io/system.dart", | |
| 104 categories: "", | |
| 105 documented: false, | |
| 106 platforms: FLETCH_PLATFORM), | |
| 107 | |
| 108 "service": const LibraryInfo( | |
| 109 "service/service.dart", | 103 "service/service.dart", |
| 110 categories: "Client,Server,Embedded", | 104 categories: "Client,Server,Embedded", |
| 111 documented: false, | 105 documented: false, |
| 112 platforms: FLETCH_PLATFORM), | 106 platforms: FLETCH_PLATFORM), |
| 113 | 107 |
| 114 "fletch.os": const LibraryInfo( | 108 "fletch.os": const LibraryInfo( |
| 115 "os/os.dart", | 109 "os/os.dart", |
| 116 categories: "Client,Server,Embedded", | 110 categories: "Client,Server,Embedded", |
| 117 documented: false, | 111 documented: false, |
| 118 platforms: FLETCH_PLATFORM), | 112 platforms: FLETCH_PLATFORM), |
| (...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 } | 331 } |
| 338 } | 332 } |
| 339 | 333 |
| 340 SourceFile getSourceFile(api.CompilerInput provider, Uri uri) { | 334 SourceFile getSourceFile(api.CompilerInput provider, Uri uri) { |
| 341 if (provider is SourceFileProvider) { | 335 if (provider is SourceFileProvider) { |
| 342 return provider.sourceFiles[uri]; | 336 return provider.sourceFiles[uri]; |
| 343 } else { | 337 } else { |
| 344 return null; | 338 return null; |
| 345 } | 339 } |
| 346 } | 340 } |
| OLD | NEW |