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

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

Issue 163853004: Revert "Fix null.runtimeType, reflect(null).type.superinterfaces, and reflect(null).getField." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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
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 get currentElement; 8 Element get currentElement;
9 Setlet<Node> get superUses; 9 Setlet<Node> get superUses;
10 10
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 if (element.isPatched) { 796 if (element.isPatched) {
797 // Ensure handling patch after origin. 797 // Ensure handling patch after origin.
798 element.patch.ensureResolved(compiler); 798 element.patch.ensureResolved(compiler);
799 } 799 }
800 } else { // Handle patch classes: 800 } else { // Handle patch classes:
801 element.resolutionState = STATE_STARTED; 801 element.resolutionState = STATE_STARTED;
802 // Ensure handling origin before patch. 802 // Ensure handling origin before patch.
803 element.origin.ensureResolved(compiler); 803 element.origin.ensureResolved(compiler);
804 // Ensure that the type is computed. 804 // Ensure that the type is computed.
805 element.computeType(compiler); 805 element.computeType(compiler);
806 // Copy class hierarchy from origin. 806 // Copy class hiearchy from origin.
807 element.supertype = element.origin.supertype; 807 element.supertype = element.origin.supertype;
808 element.interfaces = element.origin.interfaces; 808 element.interfaces = element.origin.interfaces;
809 element.allSupertypesAndSelf = element.origin.allSupertypesAndSelf; 809 element.allSupertypesAndSelf = element.origin.allSupertypesAndSelf;
810 // Stepwise assignment to ensure invariant. 810 // Stepwise assignment to ensure invariant.
811 element.supertypeLoadState = STATE_STARTED; 811 element.supertypeLoadState = STATE_STARTED;
812 element.supertypeLoadState = STATE_DONE; 812 element.supertypeLoadState = STATE_DONE;
813 element.resolutionState = STATE_DONE; 813 element.resolutionState = STATE_DONE;
814 // TODO(johnniwinther): Check matching type variables and 814 // TODO(johnniwinther): Check matching type variables and
815 // empty extends/implements clauses. 815 // empty extends/implements clauses.
816 } 816 }
(...skipping 3716 matching lines...) Expand 10 before | Expand all | Expand 10 after
4533 return finishConstructorReference(visit(expression), 4533 return finishConstructorReference(visit(expression),
4534 expression, expression); 4534 expression, expression);
4535 } 4535 }
4536 } 4536 }
4537 4537
4538 /// Looks up [name] in [scope] and unwraps the result. 4538 /// Looks up [name] in [scope] and unwraps the result.
4539 Element lookupInScope(Compiler compiler, Node node, 4539 Element lookupInScope(Compiler compiler, Node node,
4540 Scope scope, String name) { 4540 Scope scope, String name) {
4541 return Elements.unwrap(scope.lookup(name), compiler, node); 4541 return Elements.unwrap(scope.lookup(name), compiler, node);
4542 } 4542 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/js_backend/namer.dart ('k') | sdk/lib/_internal/lib/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698