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

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

Issue 1880323002: dart2js cleanup: remove unused imports and variables (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: merge master Created 4 years, 8 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
« no previous file with comments | « pkg/compiler/samples/darttags/darttags.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:async'; 5 import 'dart:async';
6 import 'dart:convert';
6 import 'dart:io'; 7 import 'dart:io';
7 import 'dart:convert';
8
9 import 'dart:mirrors'; 8 import 'dart:mirrors';
10 9
11 import 'package:sdk_library_metadata/libraries.dart' 10 import 'package:sdk_library_metadata/libraries.dart' show libraries;
12 show libraries, LibraryInfo;
13 11
12 import '../../lib/src/filenames.dart';
14 import '../../lib/src/mirrors/analyze.dart' show analyze; 13 import '../../lib/src/mirrors/analyze.dart' show analyze;
15 import '../../lib/src/mirrors/dart2js_mirrors.dart' show BackDoor; 14 import '../../lib/src/mirrors/dart2js_mirrors.dart' show BackDoor;
16
17 import '../../lib/src/filenames.dart';
18 import '../../lib/src/source_file_provider.dart'; 15 import '../../lib/src/source_file_provider.dart';
19 import '../../lib/src/util/uri_extras.dart'; 16 import '../../lib/src/util/uri_extras.dart';
20 17
21 const DART2JS = '../../lib/src/dart2js.dart'; 18 const DART2JS = '../../lib/src/dart2js.dart';
22 const DART2JS_MIRROR = '../../lib/src/mirrors/dart2js_mirror.dart'; 19 const DART2JS_MIRROR = '../../lib/src/mirrors/dart2js_mirror.dart';
23 const SDK_ROOT = '../../../../sdk/'; 20 const SDK_ROOT = '../../../../sdk/';
24 21
25 bool isPublicDart2jsLibrary(String name) { 22 bool isPublicDart2jsLibrary(String name) {
26 return !name.startsWith('_') && libraries[name].isDart2jsLibrary; 23 return !name.startsWith('_') && libraries[name].isDart2jsLibrary;
27 } 24 }
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 100
104 library dart.sdk_sources; 101 library dart.sdk_sources;
105 102
106 const Map<String, String> SDK_SOURCES = const <String, String>'''); 103 const Map<String, String> SDK_SOURCES = const <String, String>''');
107 output.writeStringSync(JSON.encode(map).replaceAll(r'$', r'\$')); 104 output.writeStringSync(JSON.encode(map).replaceAll(r'$', r'\$'));
108 output.writeStringSync(';\n'); 105 output.writeStringSync(';\n');
109 } 106 }
110 output.closeSync(); 107 output.closeSync();
111 }); 108 });
112 } 109 }
OLDNEW
« no previous file with comments | « pkg/compiler/samples/darttags/darttags.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698