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

Side by Side Diff: pkg/compiler/samples/jsonify/jsonify.dart

Issue 690103004: Move dart2js from sdk/lib/_internal/compiler to pkg/compiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/samples/darttags/darttags.dart ('k') | pkg/compiler_unsupported/tool/create_library.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698