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

Side by Side Diff: pkg/analyzer/lib/src/generated/element_resolver.dart

Issue 854363005: Remove Element.users support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library engine.resolver.element_resolver; 5 library engine.resolver.element_resolver;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'ast.dart'; 9 import 'ast.dart';
10 import 'element.dart'; 10 import 'element.dart';
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 } 616 }
617 staticElement = _convertSetterToGetter(staticElement); 617 staticElement = _convertSetterToGetter(staticElement);
618 propagatedElement = _convertSetterToGetter(propagatedElement); 618 propagatedElement = _convertSetterToGetter(propagatedElement);
619 // 619 //
620 // Record the results. 620 // Record the results.
621 // 621 //
622 methodName.staticElement = staticElement; 622 methodName.staticElement = staticElement;
623 methodName.propagatedElement = propagatedElement; 623 methodName.propagatedElement = propagatedElement;
624 ArgumentList argumentList = node.argumentList; 624 ArgumentList argumentList = node.argumentList;
625 if (staticElement != null) { 625 if (staticElement != null) {
626 staticElement.addUser(_resolver.enclosingFunction);
627 List<ParameterElement> parameters = 626 List<ParameterElement> parameters =
628 _computeCorrespondingParameters(argumentList, staticElement); 627 _computeCorrespondingParameters(argumentList, staticElement);
629 if (parameters != null) { 628 if (parameters != null) {
630 argumentList.correspondingStaticParameters = parameters; 629 argumentList.correspondingStaticParameters = parameters;
631 } 630 }
632 } 631 }
633 if (propagatedElement != null) { 632 if (propagatedElement != null) {
634 propagatedElement.addUser(_resolver.enclosingFunction);
635 List<ParameterElement> parameters = 633 List<ParameterElement> parameters =
636 _computeCorrespondingParameters(argumentList, propagatedElement); 634 _computeCorrespondingParameters(argumentList, propagatedElement);
637 if (parameters != null) { 635 if (parameters != null) {
638 argumentList.correspondingPropagatedParameters = parameters; 636 argumentList.correspondingPropagatedParameters = parameters;
639 } 637 }
640 } 638 }
641 // 639 //
642 // Then check for error conditions. 640 // Then check for error conditions.
643 // 641 //
644 ErrorCode errorCode = _checkForInvocationError(target, true, staticElement); 642 ErrorCode errorCode = _checkForInvocationError(target, true, staticElement);
(...skipping 2480 matching lines...) Expand 10 before | Expand all | Expand 10 after
3125 @override 3123 @override
3126 Element get staticElement => null; 3124 Element get staticElement => null;
3127 3125
3128 @override 3126 @override
3129 accept(AstVisitor visitor) => null; 3127 accept(AstVisitor visitor) => null;
3130 3128
3131 @override 3129 @override
3132 void visitChildren(AstVisitor visitor) { 3130 void visitChildren(AstVisitor visitor) {
3133 } 3131 }
3134 } 3132 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/element_handle.dart ('k') | pkg/analyzer/lib/src/generated/incremental_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698