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

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

Issue 14049009: Rename Invocation to InvocationMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged Created 7 years, 8 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 Set<Node> get superUses; 9 Set<Node> get superUses;
10 10
(...skipping 1995 matching lines...) Expand 10 before | Expand all | Expand 10 after
2006 // patch. 2006 // patch.
2007 target = currentClass.lookupSuperSelector(selector); 2007 target = currentClass.lookupSuperSelector(selector);
2008 // [target] may be null which means invoking noSuchMethod on 2008 // [target] may be null which means invoking noSuchMethod on
2009 // super. 2009 // super.
2010 if (target == null) { 2010 if (target == null) {
2011 target = warnAndCreateErroneousElement( 2011 target = warnAndCreateErroneousElement(
2012 node, name, MessageKind.NO_SUCH_SUPER_MEMBER, 2012 node, name, MessageKind.NO_SUCH_SUPER_MEMBER,
2013 {'className': currentClass, 'memberName': name}); 2013 {'className': currentClass, 'memberName': name});
2014 // We still need to register the invocation, because we might 2014 // We still need to register the invocation, because we might
2015 // call [:super.noSuchMethod:] that does a 2015 // call [:super.noSuchMethod:] that does a
2016 // [:InvocationMirror.invokeOn:]. 2016 // [:Invocation.invokeOn:].
2017 world.registerDynamicInvocation(selector.name, selector); 2017 world.registerDynamicInvocation(selector.name, selector);
2018 compiler.backend.registerSuperNoSuchMethod(mapping); 2018 compiler.backend.registerSuperNoSuchMethod(mapping);
2019 } 2019 }
2020 } else if (Elements.isUnresolved(resolvedReceiver)) { 2020 } else if (Elements.isUnresolved(resolvedReceiver)) {
2021 return null; 2021 return null;
2022 } else if (resolvedReceiver.isClass()) { 2022 } else if (resolvedReceiver.isClass()) {
2023 ClassElement receiverClass = resolvedReceiver; 2023 ClassElement receiverClass = resolvedReceiver;
2024 receiverClass.ensureResolved(compiler); 2024 receiverClass.ensureResolved(compiler);
2025 if (node.isOperator) { 2025 if (node.isOperator) {
2026 // When the resolved receiver is a class, we can have two cases: 2026 // When the resolved receiver is a class, we can have two cases:
(...skipping 1849 matching lines...) Expand 10 before | Expand all | Expand 10 after
3876 return e; 3876 return e;
3877 } 3877 }
3878 3878
3879 /// Assumed to be called by [resolveRedirectingFactory]. 3879 /// Assumed to be called by [resolveRedirectingFactory].
3880 Element visitReturn(Return node) { 3880 Element visitReturn(Return node) {
3881 Node expression = node.expression; 3881 Node expression = node.expression;
3882 return finishConstructorReference(visit(expression), 3882 return finishConstructorReference(visit(expression),
3883 expression, expression); 3883 expression, expression);
3884 } 3884 }
3885 } 3885 }
OLDNEW
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/lib/js_helper.dart ('k') | dart/sdk/lib/core/core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698