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

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

Issue 2441483002: In DeclarationResolver, handle generic function-typed parameters. (Closed)
Patch Set: Created 4 years, 2 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 | pkg/analyzer/test/src/context/context_test.dart » ('j') | 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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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.declaration_resolver; 5 library analyzer.src.generated.declaration_resolver;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/ast/token.dart'; 8 import 'package:analyzer/dart/ast/token.dart';
9 import 'package:analyzer/dart/ast/visitor.dart'; 9 import 'package:analyzer/dart/ast/visitor.dart';
10 import 'package:analyzer/dart/element/element.dart'; 10 import 'package:analyzer/dart/element/element.dart';
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 _parameters = element.parameters, 521 _parameters = element.parameters,
522 _typeParameters = element.typeParameters, 522 _typeParameters = element.typeParameters,
523 _variables = element.localVariables; 523 _variables = element.localVariables;
524 524
525 /** 525 /**
526 * Creates an [ElementWalker] which walks the child elements of a parameter 526 * Creates an [ElementWalker] which walks the child elements of a parameter
527 * element. 527 * element.
528 */ 528 */
529 ElementWalker.forParameter(ParameterElement element) 529 ElementWalker.forParameter(ParameterElement element)
530 : element = element, 530 : element = element,
531 _parameters = element.parameters; 531 _parameters = element.parameters,
532 _typeParameters = element.typeParameters;
532 533
533 /** 534 /**
534 * Creates an [ElementWalker] which walks the child elements of a typedef 535 * Creates an [ElementWalker] which walks the child elements of a typedef
535 * element. 536 * element.
536 */ 537 */
537 ElementWalker.forTypedef(FunctionTypeAliasElement element) 538 ElementWalker.forTypedef(FunctionTypeAliasElement element)
538 : element = element, 539 : element = element,
539 _parameters = element.parameters, 540 _parameters = element.parameters,
540 _typeParameters = element.typeParameters; 541 _typeParameters = element.typeParameters;
541 542
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 class _ElementMismatchException extends AnalysisException { 633 class _ElementMismatchException extends AnalysisException {
633 /** 634 /**
634 * Creates an exception to refer to the given [compilationUnit], [element], 635 * Creates an exception to refer to the given [compilationUnit], [element],
635 * and [cause]. 636 * and [cause].
636 */ 637 */
637 _ElementMismatchException( 638 _ElementMismatchException(
638 CompilationUnitElement compilationUnit, Element element, 639 CompilationUnitElement compilationUnit, Element element,
639 [CaughtException cause = null]) 640 [CaughtException cause = null])
640 : super('Element mismatch in $compilationUnit at $element', cause); 641 : super('Element mismatch in $compilationUnit at $element', cause);
641 } 642 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698