| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |