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

Side by Side Diff: sdk/lib/_internal/compiler/samples/jsonify/jsonify.dart

Issue 119913002: Align source mirrors with runtime mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 6 years, 10 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 | 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 // TODO(ahe): Should be dart:mirrors. 8 import 'dart:mirrors';
9 import '../../implementation/mirrors/mirrors.dart';
10 9
11 import '../../../libraries.dart' 10 import '../../../libraries.dart'
12 show LIBRARIES, LibraryInfo; 11 show LIBRARIES, LibraryInfo;
13 12
14 import '../../implementation/mirrors/dart2js_mirror.dart' 13 import '../../implementation/mirrors/analyze.dart'
15 show analyze, BackDoor; 14 show analyze;
15 import '../../implementation/mirrors/dart2js_mirrors.dart'
16 show BackDoor;
16 17
17 import '../../implementation/filenames.dart'; 18 import '../../implementation/filenames.dart';
18 import '../../implementation/source_file.dart'; 19 import '../../implementation/source_file.dart';
19 import '../../implementation/source_file_provider.dart'; 20 import '../../implementation/source_file_provider.dart';
20 import '../../implementation/util/uri_extras.dart'; 21 import '../../implementation/util/uri_extras.dart';
21 22
22 const DART2JS = '../../implementation/dart2js.dart'; 23 const DART2JS = '../../implementation/dart2js.dart';
23 const DART2JS_MIRROR = '../../implementation/mirrors/dart2js_mirror.dart'; 24 const DART2JS_MIRROR = '../../implementation/mirrors/dart2js_mirror.dart';
24 const SDK_ROOT = '../../../../../'; 25 const SDK_ROOT = '../../../../../';
25 26
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // This file is generated by jsonify.dart. 92 // This file is generated by jsonify.dart.
92 93
93 library dart.sdk_sources; 94 library dart.sdk_sources;
94 95
95 const Map<String, String> SDK_SOURCES = const <String, String>'''); 96 const Map<String, String> SDK_SOURCES = const <String, String>''');
96 output.writeStringSync(JSON.encode(map).replaceAll(r'$', r'\$')); 97 output.writeStringSync(JSON.encode(map).replaceAll(r'$', r'\$'));
97 output.writeStringSync(';\n'); 98 output.writeStringSync(';\n');
98 } 99 }
99 output.closeSync(); 100 output.closeSync();
100 } 101 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698