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

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

Issue 814533005: Incrementally resolve users of a changed method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 ArgumentList argumentList = node.argumentList; 624 ArgumentList argumentList = node.argumentList;
625 if (staticElement != null) { 625 if (staticElement != null) {
626 staticElement.addUser(_resolver.enclosingFunction); 626 staticElement.addUser(_resolver.enclosingFunction);
627 List<ParameterElement> parameters = 627 List<ParameterElement> parameters =
628 _computeCorrespondingParameters(argumentList, staticElement); 628 _computeCorrespondingParameters(argumentList, staticElement);
629 if (parameters != null) { 629 if (parameters != null) {
630 argumentList.correspondingStaticParameters = parameters; 630 argumentList.correspondingStaticParameters = parameters;
631 } 631 }
632 } 632 }
633 if (propagatedElement != null) { 633 if (propagatedElement != null) {
634 propagatedElement.addUser(_resolver.enclosingFunction);
634 List<ParameterElement> parameters = 635 List<ParameterElement> parameters =
635 _computeCorrespondingParameters(argumentList, propagatedElement); 636 _computeCorrespondingParameters(argumentList, propagatedElement);
636 if (parameters != null) { 637 if (parameters != null) {
637 argumentList.correspondingPropagatedParameters = parameters; 638 argumentList.correspondingPropagatedParameters = parameters;
638 } 639 }
639 } 640 }
640 // 641 //
641 // Then check for error conditions. 642 // Then check for error conditions.
642 // 643 //
643 ErrorCode errorCode = _checkForInvocationError(target, true, staticElement); 644 ErrorCode errorCode = _checkForInvocationError(target, true, staticElement);
(...skipping 2472 matching lines...) Expand 10 before | Expand all | Expand 10 after
3116 @override 3117 @override
3117 Element get staticElement => null; 3118 Element get staticElement => null;
3118 3119
3119 @override 3120 @override
3120 accept(AstVisitor visitor) => null; 3121 accept(AstVisitor visitor) => null;
3121 3122
3122 @override 3123 @override
3123 void visitChildren(AstVisitor visitor) { 3124 void visitChildren(AstVisitor visitor) {
3124 } 3125 }
3125 } 3126 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/engine.dart » ('j') | pkg/analyzer/lib/src/generated/incremental_resolver.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698