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 analyzer_impl; | 5 library analyzer_impl; |
6 | 6 |
7 import 'dart:io'; | 7 import 'dart:io'; |
8 | 8 |
9 import 'generated/java_io.dart'; | 9 import 'generated/java_io.dart'; |
10 import 'generated/engine.dart'; | 10 import 'generated/engine.dart'; |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 DirectoryBasedDartSdk directoryBasedSdk = sdk; | 179 DirectoryBasedDartSdk directoryBasedSdk = sdk; |
180 String sdkLibPath = directoryBasedSdk.libraryDirectory.getPath() + JavaFil
e.separator; | 180 String sdkLibPath = directoryBasedSdk.libraryDirectory.getPath() + JavaFil
e.separator; |
181 if (file.getPath().startsWith(sdkLibPath)) { | 181 if (file.getPath().startsWith(sdkLibPath)) { |
182 return UriKind.DART_URI; | 182 return UriKind.DART_URI; |
183 } | 183 } |
184 } | 184 } |
185 // some generic file | 185 // some generic file |
186 return UriKind.FILE_URI; | 186 return UriKind.FILE_URI; |
187 } | 187 } |
188 } | 188 } |
OLD | NEW |