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

Side by Side Diff: packages/code_transformers/lib/src/dart_sdk.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 code_transformers.src.dart_sdk; 5 library code_transformers.src.dart_sdk;
6 6
7 import 'dart:io' show Directory; 7 import 'dart:io' show Directory;
8 8
9 import 'package:analyzer/src/generated/engine.dart'; 9 import 'package:analyzer/src/generated/engine.dart';
10 import 'package:analyzer/src/generated/java_io.dart'; 10 import 'package:analyzer/src/generated/java_io.dart';
(...skipping 27 matching lines...) Expand all
38 Source mapDartUri(String dartUri) => 38 Source mapDartUri(String dartUri) =>
39 DartSourceProxy.wrap(super.mapDartUri(dartUri), Uri.parse(dartUri)); 39 DartSourceProxy.wrap(super.mapDartUri(dartUri), Uri.parse(dartUri));
40 } 40 }
41 41
42 /// Dart SDK resolver which wraps all Dart sources to ensure they are tracked 42 /// Dart SDK resolver which wraps all Dart sources to ensure they are tracked
43 /// with URIs. 43 /// with URIs.
44 class DartUriResolverProxy implements DartUriResolver { 44 class DartUriResolverProxy implements DartUriResolver {
45 final DartUriResolver _proxy; 45 final DartUriResolver _proxy;
46 DartUriResolverProxy(DartSdk sdk) : _proxy = new DartUriResolver(sdk); 46 DartUriResolverProxy(DartSdk sdk) : _proxy = new DartUriResolver(sdk);
47 47
48 Source resolveAbsolute(Uri uri) => 48 Source resolveAbsolute(Uri uri, [Uri actualUri]) =>
49 DartSourceProxy.wrap(_proxy.resolveAbsolute(uri), uri); 49 DartSourceProxy.wrap(_proxy.resolveAbsolute(uri, actualUri), uri);
50 50
51 DartSdk get dartSdk => _proxy.dartSdk; 51 DartSdk get dartSdk => _proxy.dartSdk;
52 52
53 Source fromEncoding(UriKind kind, Uri uri) => 53 Source fromEncoding(UriKind kind, Uri uri) =>
54 throw new UnsupportedError('fromEncoding is not supported'); 54 throw new UnsupportedError('fromEncoding is not supported');
55 55
56 Uri restoreAbsolute(Source source) => 56 Uri restoreAbsolute(Source source) =>
57 throw new UnsupportedError('restoreAbsolute is not supported'); 57 throw new UnsupportedError('restoreAbsolute is not supported');
58 } 58 }
59 59
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 'dart:async': ''' 249 'dart:async': '''
250 class Future<T> { 250 class Future<T> {
251 Future then(callback) {} 251 Future then(callback) {}
252 class Stream<T> {} 252 class Stream<T> {}
253 ''', 253 ''',
254 'dart:html': ''' 254 'dart:html': '''
255 library dart.html; 255 library dart.html;
256 class HtmlElement {} 256 class HtmlElement {}
257 ''', 257 ''',
258 }; 258 };
OLDNEW
« no previous file with comments | « packages/code_transformers/lib/src/async_benchmark_base.dart ('k') | packages/code_transformers/lib/src/delete_file.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698