Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Side by Side Diff: pkg/analyzer/lib/source/sdk_ext.dart

Issue 1214823003: Move SdkExtUriResolver from analysis_server to analyzer so it can be used in analyzer_cli (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pkg/analysis_server/test/src/test_all.dart ('k') | pkg/analyzer/test/source/sdk_ext_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/test/src/test_all.dart ('k') | pkg/analyzer/test/source/sdk_ext_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698