| 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:io'; | 5 import 'dart:io'; |
| 6 import 'dart:convert'; | 6 import 'dart:convert'; |
| 7 | 7 |
| 8 import 'dart:mirrors'; | 8 import 'dart:mirrors'; |
| 9 | 9 |
| 10 import '../../../libraries.dart' | 10 import 'package:_internal/libraries.dart' |
| 11 show LIBRARIES, LibraryInfo; | 11 show LIBRARIES, LibraryInfo; |
| 12 | 12 |
| 13 import '../../implementation/mirrors/analyze.dart' | 13 import '../../lib/src/mirrors/analyze.dart' |
| 14 show analyze; | 14 show analyze; |
| 15 import '../../implementation/mirrors/dart2js_mirrors.dart' | 15 import '../../lib/src/mirrors/dart2js_mirrors.dart' |
| 16 show BackDoor; | 16 show BackDoor; |
| 17 | 17 |
| 18 import '../../implementation/filenames.dart'; | 18 import '../../lib/src/filenames.dart'; |
| 19 import '../../implementation/source_file.dart'; | 19 import '../../lib/src/source_file.dart'; |
| 20 import '../../implementation/source_file_provider.dart'; | 20 import '../../lib/src/source_file_provider.dart'; |
| 21 import '../../implementation/util/uri_extras.dart'; | 21 import '../../lib/src/util/uri_extras.dart'; |
| 22 | 22 |
| 23 const DART2JS = '../../implementation/dart2js.dart'; | 23 const DART2JS = '../../lib/src/dart2js.dart'; |
| 24 const DART2JS_MIRROR = '../../implementation/mirrors/dart2js_mirror.dart'; | 24 const DART2JS_MIRROR = '../../lib/src/mirrors/dart2js_mirror.dart'; |
| 25 const SDK_ROOT = '../../../../../'; | 25 const SDK_ROOT = '../../../../sdk/'; |
| 26 | 26 |
| 27 bool isPublicDart2jsLibrary(String name) { | 27 bool isPublicDart2jsLibrary(String name) { |
| 28 return !name.startsWith('_') && LIBRARIES[name].isDart2jsLibrary; | 28 return !name.startsWith('_') && LIBRARIES[name].isDart2jsLibrary; |
| 29 } | 29 } |
| 30 | 30 |
| 31 var handler; | 31 var handler; |
| 32 RandomAccessFile output; | 32 RandomAccessFile output; |
| 33 Uri outputUri; | 33 Uri outputUri; |
| 34 Uri sdkRoot; | 34 Uri sdkRoot; |
| 35 const bool outputJson = | 35 const bool outputJson = |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 // This file is generated by jsonify.dart. | 92 // This file is generated by jsonify.dart. |
| 93 | 93 |
| 94 library dart.sdk_sources; | 94 library dart.sdk_sources; |
| 95 | 95 |
| 96 const Map<String, String> SDK_SOURCES = const <String, String>'''); | 96 const Map<String, String> SDK_SOURCES = const <String, String>'''); |
| 97 output.writeStringSync(JSON.encode(map).replaceAll(r'$', r'\$')); | 97 output.writeStringSync(JSON.encode(map).replaceAll(r'$', r'\$')); |
| 98 output.writeStringSync(';\n'); | 98 output.writeStringSync(';\n'); |
| 99 } | 99 } |
| 100 output.closeSync(); | 100 output.closeSync(); |
| 101 } | 101 } |
| OLD | NEW |