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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/enqueue.dart

Issue 655803002: Mark analyzer test as failing. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/pkg.status ('k') | tests/lib/lib.status » ('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 part of dart2js; 5 part of dart2js;
6 6
7 typedef ItemCompilationContext ItemCompilationContextCreator(); 7 typedef ItemCompilationContext ItemCompilationContextCreator();
8 8
9 class EnqueueTask extends CompilerTask { 9 class EnqueueTask extends CompilerTask {
10 final ResolutionEnqueuer resolution; 10 final ResolutionEnqueuer resolution;
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 }); 505 });
506 } 506 }
507 } 507 }
508 508
509 /** 509 /**
510 * Documentation wanted -- johnniwinther 510 * Documentation wanted -- johnniwinther
511 * 511 *
512 * Invariant: [element] must be a declaration element. 512 * Invariant: [element] must be a declaration element.
513 */ 513 */
514 void registerStaticUse(Element element) { 514 void registerStaticUse(Element element) {
515 if (element.toString().contains("EXPECTED_ONE_LIST_TYPE_ARGUMENTS")) {
floitsch 2014/10/14 12:47:32 Debug code. Removing and uploading a new patch set
516 print(element);
517 }
515 if (element == null) return; 518 if (element == null) return;
516 assert(invariant(element, element.isDeclaration)); 519 assert(invariant(element, element.isDeclaration));
517 addToWorkList(element); 520 addToWorkList(element);
518 compiler.backend.registerStaticUse(element, this); 521 compiler.backend.registerStaticUse(element, this);
519 } 522 }
520 523
521 void registerGetOfStaticFunction(FunctionElement element) { 524 void registerGetOfStaticFunction(FunctionElement element) {
522 registerStaticUse(element); 525 registerStaticUse(element);
523 compiler.backend.registerGetOfStaticFunction(this); 526 compiler.backend.registerGetOfStaticFunction(this);
524 universe.staticFunctionsNeedingGetter.add(element); 527 universe.staticFunctionsNeedingGetter.add(element);
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
902 void processWorkItem(void f(WorkItem work), WorkItem work) { 905 void processWorkItem(void f(WorkItem work), WorkItem work) {
903 f(work); 906 f(work);
904 } 907 }
905 } 908 }
906 909
907 void removeFromSet(Map<String, Set<Element>> map, Element element) { 910 void removeFromSet(Map<String, Set<Element>> map, Element element) {
908 Set<Element> set = map[element.name]; 911 Set<Element> set = map[element.name];
909 if (set == null) return; 912 if (set == null) return;
910 set.remove(element); 913 set.remove(element);
911 } 914 }
OLDNEW
« no previous file with comments | « pkg/pkg.status ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698