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

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

Issue 1338683002: Add related types check to analyze_dart2js_test (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cleanup. 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
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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
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.getClassHierarchyNode(null); 273 world.getClassHierarchyNode(null);
274 world.getClassSet(null); 274 world.getClassSet(null);
275 world.haveAnyCommonSubtypes(null, null);
275 typeGraphInferrer.getCallersOf(null); 276 typeGraphInferrer.getCallersOf(null);
276 dart_types.Types.sorted(null); 277 dart_types.Types.sorted(null);
277 new dart_types.Types(compiler).copy(compiler); 278 new dart_types.Types(compiler).copy(compiler);
278 sourceFileProvider.readStringFromUri(null); 279 sourceFileProvider.readStringFromUri(null);
279 } 280 }
280 281
281 useElements( 282 useElements(
282 [elements.ClassElement e, 283 [elements.ClassElement e,
283 elements.Name n, 284 elements.Name n,
284 modelx.FieldElementX f, 285 modelx.FieldElementX f,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 338
338 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 339 class TreeVisitor1 extends tree_ir.ExpressionVisitor1
339 with tree_ir.StatementVisitor1 { 340 with tree_ir.StatementVisitor1 {
340 noSuchMethod(inv) {} 341 noSuchMethod(inv) {}
341 } 342 }
342 343
343 useTreeVisitors() { 344 useTreeVisitors() {
344 new TreeVisitor1().visitExpression(null, null); 345 new TreeVisitor1().visitExpression(null, null);
345 new TreeVisitor1().visitStatement(null, null); 346 new TreeVisitor1().visitStatement(null, null);
346 } 347 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698