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

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

Issue 830703004: Emit to StreamCodeOutput instead of CodeBuffer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 5 years, 11 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 import 'dart:mirrors'; 8 import 'dart:mirrors';
9 9
10 import 'package:_internal/libraries.dart' 10 import 'package:_internal/libraries.dart'
11 show LIBRARIES, LibraryInfo; 11 show LIBRARIES, LibraryInfo;
12 12
13 import '../../lib/src/mirrors/analyze.dart' 13 import '../../lib/src/mirrors/analyze.dart'
14 show analyze; 14 show analyze;
15 import '../../lib/src/mirrors/dart2js_mirrors.dart' 15 import '../../lib/src/mirrors/dart2js_mirrors.dart'
16 show BackDoor; 16 show BackDoor;
17 17
18 import '../../lib/src/filenames.dart'; 18 import '../../lib/src/filenames.dart';
19 import '../../lib/src/source_file.dart'; 19 import '../../lib/src/io/source_file.dart';
20 import '../../lib/src/source_file_provider.dart'; 20 import '../../lib/src/source_file_provider.dart';
21 import '../../lib/src/util/uri_extras.dart'; 21 import '../../lib/src/util/uri_extras.dart';
22 22
23 const DART2JS = '../../lib/src/dart2js.dart'; 23 const DART2JS = '../../lib/src/dart2js.dart';
24 const DART2JS_MIRROR = '../../lib/src/mirrors/dart2js_mirror.dart'; 24 const DART2JS_MIRROR = '../../lib/src/mirrors/dart2js_mirror.dart';
25 const SDK_ROOT = '../../../../sdk/'; 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 }
(...skipping 62 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/dart2js_incremental/lib/caching_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698