| 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 import 'dart:async'; | 5 import 'dart:async'; |
| 6 import 'dart:io'; | 6 import 'dart:io'; |
| 7 import 'dart:convert'; | 7 import 'dart:convert'; |
| 8 | 8 |
| 9 import 'dart:mirrors'; | 9 import 'dart:mirrors'; |
| 10 | 10 |
| 11 import 'package:sdk_library_metadata/libraries.dart' | 11 import 'package:sdk_library_metadata/libraries.dart' |
| 12 show libraries, LibraryInfo; | 12 show libraries, LibraryInfo; |
| 13 | 13 |
| 14 import '../../lib/src/mirrors/analyze.dart' | 14 import '../../lib/src/mirrors/analyze.dart' |
| 15 show analyze; | 15 show analyze; |
| 16 import '../../lib/src/mirrors/dart2js_mirrors.dart' | 16 import '../../lib/src/mirrors/dart2js_mirrors.dart' |
| 17 show BackDoor; | 17 show BackDoor; |
| 18 | 18 |
| 19 import '../../lib/src/filenames.dart'; | 19 import '../../lib/src/filenames.dart'; |
| 20 import '../../lib/src/io/source_file.dart'; | |
| 21 import '../../lib/src/source_file_provider.dart'; | 20 import '../../lib/src/source_file_provider.dart'; |
| 22 import '../../lib/src/util/uri_extras.dart'; | 21 import '../../lib/src/util/uri_extras.dart'; |
| 23 | 22 |
| 24 const DART2JS = '../../lib/src/dart2js.dart'; | 23 const DART2JS = '../../lib/src/dart2js.dart'; |
| 25 const DART2JS_MIRROR = '../../lib/src/mirrors/dart2js_mirror.dart'; | 24 const DART2JS_MIRROR = '../../lib/src/mirrors/dart2js_mirror.dart'; |
| 26 const SDK_ROOT = '../../../../sdk/'; | 25 const SDK_ROOT = '../../../../sdk/'; |
| 27 | 26 |
| 28 bool isPublicDart2jsLibrary(String name) { | 27 bool isPublicDart2jsLibrary(String name) { |
| 29 return !name.startsWith('_') && libraries[name].isDart2jsLibrary; | 28 return !name.startsWith('_') && libraries[name].isDart2jsLibrary; |
| 30 } | 29 } |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 | 107 |
| 109 library dart.sdk_sources; | 108 library dart.sdk_sources; |
| 110 | 109 |
| 111 const Map<String, String> SDK_SOURCES = const <String, String>'''); | 110 const Map<String, String> SDK_SOURCES = const <String, String>'''); |
| 112 output.writeStringSync(JSON.encode(map).replaceAll(r'$', r'\$')); | 111 output.writeStringSync(JSON.encode(map).replaceAll(r'$', r'\$')); |
| 113 output.writeStringSync(';\n'); | 112 output.writeStringSync(';\n'); |
| 114 } | 113 } |
| 115 output.closeSync(); | 114 output.closeSync(); |
| 116 }); | 115 }); |
| 117 } | 116 } |
| OLD | NEW |