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

Unified Diff: lib/src/info.dart

Issue 967933005: rename ddc -> dev_compiler, fixes #84 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/codegen/reify_coercions.dart ('k') | lib/src/options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/info.dart
diff --git a/lib/src/info.dart b/lib/src/info.dart
index 03d4f67d459692565b5cb38e2f3d268aabff60cd..3d7c8cfad95688505f9fa025ce66b2ec42952fa0 100644
--- a/lib/src/info.dart
+++ b/lib/src/info.dart
@@ -4,7 +4,7 @@
/// Defines static information collected by the type checker and used later by
/// emitters to generate code.
-library ddc.src.info;
+library dev_compiler.src.info;
import 'dart:mirrors';
@@ -574,9 +574,9 @@ abstract class ConversionVisitor<R> implements AstVisitor<R> {
final List<Type> infoTypes = () {
var allTypes = new Set();
var baseTypes = new Set();
- var lib = currentMirrorSystem().findLibrary(#ddc.src.info);
var infoMirror = reflectClass(StaticInfo);
- for (var cls in lib.declarations.values.where((d) => d is ClassMirror)) {
+ var declarations = infoMirror.owner.declarations.values;
+ for (var cls in declarations.where((d) => d is ClassMirror)) {
if (cls.isSubtypeOf(infoMirror)) {
allTypes.add(cls);
baseTypes.add(cls.superclass);
« no previous file with comments | « lib/src/codegen/reify_coercions.dart ('k') | lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698