| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 analysis_server.src.sdk_ext; | 5 library source.sdk_ext; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 import 'dart:convert'; | 9 import 'dart:convert'; |
| 10 import 'dart:core' hide Resource; | 10 import 'dart:core' hide Resource; |
| 11 | 11 |
| 12 import 'package:analyzer/file_system/file_system.dart'; | 12 import 'package:analyzer/file_system/file_system.dart'; |
| 13 import 'package:analyzer/source/package_map_resolver.dart'; | 13 import 'package:analyzer/source/package_map_resolver.dart'; |
| 14 import 'package:analyzer/src/generated/source.dart'; | 14 import 'package:analyzer/src/generated/source.dart'; |
| 15 import 'package:analyzer/src/generated/java_io.dart' show JavaFile; | 15 import 'package:analyzer/src/generated/java_io.dart' show JavaFile; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 void _processSdkExtension(String name, String file, Folder libDir) { | 158 void _processSdkExtension(String name, String file, Folder libDir) { |
| 159 if (!name.startsWith(DART_COLON_PREFIX)) { | 159 if (!name.startsWith(DART_COLON_PREFIX)) { |
| 160 // SDK extensions must begin with 'dart:'. | 160 // SDK extensions must begin with 'dart:'. |
| 161 return; | 161 return; |
| 162 } | 162 } |
| 163 var key = name; | 163 var key = name; |
| 164 var value = libDir.canonicalizePath(file); | 164 var value = libDir.canonicalizePath(file); |
| 165 _urlMappings[key] = value; | 165 _urlMappings[key] = value; |
| 166 } | 166 } |
| 167 } | 167 } |
| OLD | NEW |