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

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

Issue 11531008: Remove use of !== (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 | « no previous file | tests/utils/utils.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 resolution; 5 part of resolution;
6 6
7 abstract class TreeElements { 7 abstract class TreeElements {
8 Element operator[](Node node); 8 Element operator[](Node node);
9 Selector getSelector(Send send); 9 Selector getSelector(Send send);
10 DartType getType(Node node); 10 DartType getType(Node node);
(...skipping 2788 matching lines...) Expand 10 before | Expand all | Expand 10 after
2799 /** 2799 /**
2800 * Adds [type] and all supertypes of [type] to [builder] while substituting 2800 * Adds [type] and all supertypes of [type] to [builder] while substituting
2801 * type variables. 2801 * type variables.
2802 */ 2802 */
2803 void addAllSupertypes(LinkBuilder<DartType> builder, InterfaceType type) { 2803 void addAllSupertypes(LinkBuilder<DartType> builder, InterfaceType type) {
2804 builder.addLast(type); 2804 builder.addLast(type);
2805 Link<DartType> typeArguments = type.typeArguments; 2805 Link<DartType> typeArguments = type.typeArguments;
2806 ClassElement classElement = type.element; 2806 ClassElement classElement = type.element;
2807 Link<DartType> typeVariables = classElement.typeVariables; 2807 Link<DartType> typeVariables = classElement.typeVariables;
2808 Link<DartType> supertypes = classElement.allSupertypes; 2808 Link<DartType> supertypes = classElement.allSupertypes;
2809 assert(invariant(element, supertypes !== null, 2809 assert(invariant(element, supertypes != null,
2810 message: "Supertypes not computed on $classElement " 2810 message: "Supertypes not computed on $classElement "
2811 "during resolution of $element")); 2811 "during resolution of $element"));
2812 while (!supertypes.isEmpty) { 2812 while (!supertypes.isEmpty) {
2813 DartType supertype = supertypes.head; 2813 DartType supertype = supertypes.head;
2814 builder.addLast(supertype.subst(typeArguments, typeVariables)); 2814 builder.addLast(supertype.subst(typeArguments, typeVariables));
2815 supertypes = supertypes.tail; 2815 supertypes = supertypes.tail;
2816 } 2816 }
2817 } 2817 }
2818 2818
2819 /** 2819 /**
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
3318 return e; 3318 return e;
3319 } 3319 }
3320 3320
3321 /// Assumed to be called by [resolveRedirectingFactory]. 3321 /// Assumed to be called by [resolveRedirectingFactory].
3322 Element visitReturn(Return node) { 3322 Element visitReturn(Return node) {
3323 Node expression = node.expression; 3323 Node expression = node.expression;
3324 return finishConstructorReference(visit(expression), 3324 return finishConstructorReference(visit(expression),
3325 expression, expression); 3325 expression, expression);
3326 } 3326 }
3327 } 3327 }
OLDNEW
« no previous file with comments | « no previous file | tests/utils/utils.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698