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

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

Issue 1706943002: Remove unused parameter from initForIncrementalResolution (Closed) Base URL: git@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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 analyzer.src.generated.resolver; 5 library analyzer.src.generated.resolver;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 7273 matching lines...) Expand 10 before | Expand all | Expand 10 after
7284 } 7284 }
7285 if (kind == ElementKind.PARAMETER) { 7285 if (kind == ElementKind.PARAMETER) {
7286 return element as VariableElement; 7286 return element as VariableElement;
7287 } 7287 }
7288 return null; 7288 return null;
7289 } 7289 }
7290 7290
7291 /** 7291 /**
7292 * Prepares this [ResolverVisitor] to using it for incremental resolution. 7292 * Prepares this [ResolverVisitor] to using it for incremental resolution.
7293 */ 7293 */
7294 void initForIncrementalResolution([Declaration declaration = null]) { 7294 void initForIncrementalResolution() {
7295 if (declaration != null) {
7296 Element element = declaration.element;
7297 if (element is ExecutableElement) {
7298 _enclosingFunction = element;
7299 }
7300 }
7301 _overrideManager.enterScope(); 7295 _overrideManager.enterScope();
7302 } 7296 }
7303 7297
7304 /** 7298 /**
7305 * Given a downward inference type [fnType], and the declared 7299 * Given a downward inference type [fnType], and the declared
7306 * [typeParameterList] for a function expression, determines if we can enable 7300 * [typeParameterList] for a function expression, determines if we can enable
7307 * downward inference and if so, returns the function type to use for 7301 * downward inference and if so, returns the function type to use for
7308 * inference. 7302 * inference.
7309 * 7303 *
7310 * This will return null if inference is not possible. This happens when 7304 * This will return null if inference is not possible. This happens when
(...skipping 5468 matching lines...) Expand 10 before | Expand all | Expand 10 after
12779 nonFields.add(node); 12773 nonFields.add(node);
12780 return null; 12774 return null;
12781 } 12775 }
12782 12776
12783 @override 12777 @override
12784 Object visitNode(AstNode node) => node.accept(TypeResolverVisitor_this); 12778 Object visitNode(AstNode node) => node.accept(TypeResolverVisitor_this);
12785 12779
12786 @override 12780 @override
12787 Object visitWithClause(WithClause node) => null; 12781 Object visitWithClause(WithClause node) => null;
12788 } 12782 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698