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

Side by Side Diff: pkg/compiler/lib/src/info/send_info.dart

Issue 1678053002: Fix super noSuchMethod handling. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 /// Computes measurements about sends in a function. 5 /// Computes measurements about sends in a function.
6 library compiler.src.info.send_info; 6 library compiler.src.info.send_info;
7 7
8 import 'dart:convert'; 8 import 'dart:convert';
9 9
10 import 'package:dart2js_info/src/measurements.dart'; 10 import 'package:dart2js_info/src/measurements.dart';
(...skipping 1601 matching lines...) Expand 10 before | Expand all | Expand 10 after
1612 Node index, AssignmentOperator operator, Node rhs, T arg) { 1612 Node index, AssignmentOperator operator, Node rhs, T arg) {
1613 handleNSMSuper(node, element.enclosingClass); 1613 handleNSMSuper(node, element.enclosingClass);
1614 handleNoSend(node); 1614 handleNoSend(node);
1615 handleNSMSuper(node, element.enclosingClass); 1615 handleNSMSuper(node, element.enclosingClass);
1616 } 1616 }
1617 1617
1618 void visitUnresolvedSuperGet(Send node, Element element, T arg) { 1618 void visitUnresolvedSuperGet(Send node, Element element, T arg) {
1619 handleNSMSuper(node, element.enclosingClass); 1619 handleNSMSuper(node, element.enclosingClass);
1620 } 1620 }
1621 1621
1622 void visitUnresolvedSuperSet(Send node, Element element, Node rhs, T arg) {
1623 handleNSMSuper(node, element.enclosingClass);
1624 }
1625
1622 void visitUnresolvedSuperSetIfNull( 1626 void visitUnresolvedSuperSetIfNull(
1623 Send node, Element element, Node rhs, T arg) { 1627 Send node, Element element, Node rhs, T arg) {
1624 handleNSMSuper(node, element.enclosingClass); 1628 handleNSMSuper(node, element.enclosingClass);
1625 handleNoSend(node); 1629 handleNoSend(node);
1626 } 1630 }
1627 1631
1628 void visitUnresolvedSuperGetterCompound(Send node, Element element, 1632 void visitUnresolvedSuperGetterCompound(Send node, Element element,
1629 MethodElement setter, AssignmentOperator operator, Node rhs, T arg) { 1633 MethodElement setter, AssignmentOperator operator, Node rhs, T arg) {
1630 handleNSMSuper(node, element.enclosingClass); 1634 handleNSMSuper(node, element.enclosingClass);
1631 handleOperator(node); 1635 handleOperator(node);
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after
2380 @override 2384 @override
2381 R visitClosureFieldElement(ClosureFieldElement e, A arg) { 2385 R visitClosureFieldElement(ClosureFieldElement e, A arg) {
2382 return visitVariableElement(e, arg); 2386 return visitVariableElement(e, arg);
2383 } 2387 }
2384 } 2388 }
2385 2389
2386 // TODO(sigmund): get rid of debug messages. 2390 // TODO(sigmund): get rid of debug messages.
2387 _debug(String message) { 2391 _debug(String message) {
2388 print('debug: $message'); 2392 print('debug: $message');
2389 } 2393 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698