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

Unified Diff: pkg/compiler/samples/jsonify/jsonify.dart

Issue 1401513002: Revert "Introduce the "Embedded" category." (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/samples/jsonify/jsonify.dart
diff --git a/pkg/compiler/samples/jsonify/jsonify.dart b/pkg/compiler/samples/jsonify/jsonify.dart
index 7638ca59b121882a266e448786c1ba5ab1e544b7..0d0c7e67aa07d71de6f9fffc1f761d4bbb51f3d6 100644
--- a/pkg/compiler/samples/jsonify/jsonify.dart
+++ b/pkg/compiler/samples/jsonify/jsonify.dart
@@ -8,7 +8,7 @@ import 'dart:convert';
import 'dart:mirrors';
import 'package:sdk_library_metadata/libraries.dart'
- show libraries, LibraryInfo;
+ show LIBRARIES, LibraryInfo;
import '../../lib/src/mirrors/analyze.dart'
show analyze;
@@ -25,7 +25,7 @@ const DART2JS_MIRROR = '../../lib/src/mirrors/dart2js_mirror.dart';
const SDK_ROOT = '../../../../sdk/';
bool isPublicDart2jsLibrary(String name) {
- return !name.startsWith('_') && libraries[name].isDart2jsLibrary;
+ return !name.startsWith('_') && LIBRARIES[name].isDart2jsLibrary;
}
var handler;
@@ -54,7 +54,7 @@ main(List<String> arguments) {
sdkRoot = libraryRoot.resolve('../');
// Get the names of public dart2js libraries.
- Iterable<String> names = libraries.keys.where(isPublicDart2jsLibrary);
+ Iterable<String> names = LIBRARIES.keys.where(isPublicDart2jsLibrary);
// Turn the names into uris by prepending dart: to them.
List<Uri> uris = names.map((String name) => Uri.parse('dart:$name')).toList();
@@ -75,7 +75,7 @@ jsonify(MirrorSystem mirrors) {
});
});
- libraries.forEach((name, info) {
+ LIBRARIES.forEach((name, info) {
var patch = info.dart2jsPatchPath;
if (patch != null) {
Uri uri = sdkRoot.resolve('sdk/lib/$patch');
« no previous file with comments | « pkg/compiler/samples/darttags/darttags.dart ('k') | sdk/lib/_internal/sdk_library_metadata/lib/libraries.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698