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

Side by Side Diff: pkg/compiler/lib/src/kernel/kernel.dart

Issue 2994813002: Fix broken test: closed_world2 test still uses rasta (Closed)
Patch Set: Created 3 years, 4 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 | « no previous file | 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 import 'dart:collection' show Queue; 5 import 'dart:collection' show Queue;
6 6
7 import 'package:kernel/ast.dart' as ir; 7 import 'package:kernel/ast.dart' as ir;
8 import 'package:kernel/verifier.dart' show CheckParentPointers; 8 import 'package:kernel/verifier.dart' show CheckParentPointers;
9 9
10 import '../common.dart'; 10 import '../common.dart';
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 } else if (e.isTypedef) { 169 } else if (e.isTypedef) {
170 // Ignored, typedefs are unaliased on use. 170 // Ignored, typedefs are unaliased on use.
171 } else { 171 } else {
172 internalError(e, "Unhandled library member: $e"); 172 internalError(e, "Unhandled library member: $e");
173 } 173 }
174 }); 174 });
175 // The elements were inserted in reverse order as forEachLocalMember 175 // The elements were inserted in reverse order as forEachLocalMember
176 // above gives them in reversed order. 176 // above gives them in reversed order.
177 classes.forEach(libraryNode.addClass); 177 classes.forEach(libraryNode.addClass);
178 members.forEach(libraryNode.addMember); 178 members.forEach(libraryNode.addMember);
179 // TODO(sigmund): include combinators, etc.
180 library.imports.forEach((ImportElement import) {
181 libraryNode.addDependency(new ir.LibraryDependency.import(
182 libraryToIr(import.importedLibrary)));
183 });
184 library.exports.forEach((ExportElement export) {
185 libraryNode.addDependency(new ir.LibraryDependency.export(
186 libraryToIr(export.exportedLibrary)));
187 });
179 }); 188 });
180 return libraryNode; 189 return libraryNode;
181 }); 190 });
182 } 191 }
183 192
184 /// Compute a name for [cls]. We want to have unique names in a library, but 193 /// Compute a name for [cls]. We want to have unique names in a library, but
185 /// mixin applications can lead to multiple classes with the same name. So 194 /// mixin applications can lead to multiple classes with the same name. So
186 /// for those we append `#` and a number. 195 /// for those we append `#` and a number.
187 String computeName(ClassElement cls) { 196 String computeName(ClassElement cls) {
188 String name = cls.name; 197 String name = cls.name;
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 } 797 }
789 798
790 class ConstructorTarget { 799 class ConstructorTarget {
791 final ConstructorElement element; 800 final ConstructorElement element;
792 final ResolutionDartType type; 801 final ResolutionDartType type;
793 802
794 ConstructorTarget(this.element, this.type); 803 ConstructorTarget(this.element, this.type);
795 804
796 String toString() => "ConstructorTarget($element, $type)"; 805 String toString() => "ConstructorTarget($element, $type)";
797 } 806 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698