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

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

Issue 1304083008: Add ClassSet to support ClassWorld.strictSubtypesOf (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 3 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/lib/src/universe/class_set.dart ('k') | pkg/compiler/lib/src/world.dart » ('j') | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /// This file use methods that aren't used by dart2js.dart, but that we wish to 5 /// This file use methods that aren't used by dart2js.dart, but that we wish to
6 /// keep anyway. This might be general API that isn't currently in use, 6 /// keep anyway. This might be general API that isn't currently in use,
7 /// debugging aids, or API only used for testing (see TODO below). 7 /// debugging aids, or API only used for testing (see TODO below).
8 8
9 library dart2js.use_unused_api; 9 library dart2js.use_unused_api;
10 10
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // TODO(ahe): We should try to avoid including API used only for tests. In 263 // TODO(ahe): We should try to avoid including API used only for tests. In
264 // most cases, such API can be moved to a test library. 264 // most cases, such API can be moved to a test library.
265 World world = null; 265 World world = null;
266 dart2jslib.Compiler compiler = null; 266 dart2jslib.Compiler compiler = null;
267 compiler.currentlyInUserCode(); 267 compiler.currentlyInUserCode();
268 type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null; 268 type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null;
269 source_file_provider.SourceFileProvider sourceFileProvider = null; 269 source_file_provider.SourceFileProvider sourceFileProvider = null;
270 sourceFileProvider.getSourceFile(null); 270 sourceFileProvider.getSourceFile(null);
271 world.hasAnyUserDefinedGetter(null, null); 271 world.hasAnyUserDefinedGetter(null, null);
272 world.subclassesOf(null); 272 world.subclassesOf(null);
273 world.classHierarchyNode(null); 273 world.getClassHierarchyNode(null);
274 world.getClassSet(null);
274 typeGraphInferrer.getCallersOf(null); 275 typeGraphInferrer.getCallersOf(null);
275 dart_types.Types.sorted(null); 276 dart_types.Types.sorted(null);
276 new dart_types.Types(compiler).copy(compiler); 277 new dart_types.Types(compiler).copy(compiler);
277 sourceFileProvider.readStringFromUri(null); 278 sourceFileProvider.readStringFromUri(null);
278 } 279 }
279 280
280 useElements( 281 useElements(
281 [elements.ClassElement e, 282 [elements.ClassElement e,
282 elements.Name n, 283 elements.Name n,
283 modelx.FieldElementX f, 284 modelx.FieldElementX f,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 337
337 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 338 class TreeVisitor1 extends tree_ir.ExpressionVisitor1
338 with tree_ir.StatementVisitor1 { 339 with tree_ir.StatementVisitor1 {
339 noSuchMethod(inv) {} 340 noSuchMethod(inv) {}
340 } 341 }
341 342
342 useTreeVisitors() { 343 useTreeVisitors() {
343 new TreeVisitor1().visitExpression(null, null); 344 new TreeVisitor1().visitExpression(null, null);
344 new TreeVisitor1().visitStatement(null, null); 345 new TreeVisitor1().visitStatement(null, null);
345 } 346 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/universe/class_set.dart ('k') | pkg/compiler/lib/src/world.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698