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

Side by Side Diff: pkg/analyzer/lib/src/dart/element/element.dart

Issue 2656673002: Fix FunctionTypeAliasElementImpl.visitChildren() for type parameters. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/compile_time_error_code_driver_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) 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.dart.element.element; 5 library analyzer.src.dart.element.element;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import 'dart:math' show min; 8 import 'dart:math' show min;
9 9
10 import 'package:analyzer/dart/ast/ast.dart'; 10 import 'package:analyzer/dart/ast/ast.dart';
(...skipping 1746 matching lines...) Expand 10 before | Expand all | Expand 10 after
1757 */ 1757 */
1758 void setAnnotations(int offset, List<ElementAnnotation> annotations) { 1758 void setAnnotations(int offset, List<ElementAnnotation> annotations) {
1759 annotationMap ??= new HashMap<int, List<ElementAnnotation>>(); 1759 annotationMap ??= new HashMap<int, List<ElementAnnotation>>();
1760 annotationMap[offset] = annotations; 1760 annotationMap[offset] = annotations;
1761 } 1761 }
1762 1762
1763 @override 1763 @override
1764 void visitChildren(ElementVisitor visitor) { 1764 void visitChildren(ElementVisitor visitor) {
1765 super.visitChildren(visitor); 1765 super.visitChildren(visitor);
1766 safelyVisitChildren(accessors, visitor); 1766 safelyVisitChildren(accessors, visitor);
1767 safelyVisitChildren(_enums, visitor); 1767 safelyVisitChildren(enums, visitor);
1768 safelyVisitChildren(functions, visitor); 1768 safelyVisitChildren(functions, visitor);
1769 safelyVisitChildren(functionTypeAliases, visitor); 1769 safelyVisitChildren(functionTypeAliases, visitor);
1770 safelyVisitChildren(types, visitor); 1770 safelyVisitChildren(types, visitor);
1771 safelyVisitChildren(topLevelVariables, visitor); 1771 safelyVisitChildren(topLevelVariables, visitor);
1772 } 1772 }
1773 } 1773 }
1774 1774
1775 /** 1775 /**
1776 * A [FieldElement] for a 'const' or 'final' field that has an initializer. 1776 * A [FieldElement] for a 'const' or 'final' field that has an initializer.
1777 * 1777 *
(...skipping 3076 matching lines...) Expand 10 before | Expand all | Expand 10 after
4854 return typeParameterImpl; 4854 return typeParameterImpl;
4855 } 4855 }
4856 } 4856 }
4857 return null; 4857 return null;
4858 } 4858 }
4859 4859
4860 @override 4860 @override
4861 void visitChildren(ElementVisitor visitor) { 4861 void visitChildren(ElementVisitor visitor) {
4862 super.visitChildren(visitor); 4862 super.visitChildren(visitor);
4863 safelyVisitChildren(parameters, visitor); 4863 safelyVisitChildren(parameters, visitor);
4864 safelyVisitChildren(_typeParameters, visitor); 4864 safelyVisitChildren(typeParameters, visitor);
4865 } 4865 }
4866 } 4866 }
4867 4867
4868 /** 4868 /**
4869 * A concrete implementation of a [HideElementCombinator]. 4869 * A concrete implementation of a [HideElementCombinator].
4870 */ 4870 */
4871 class HideElementCombinatorImpl implements HideElementCombinator { 4871 class HideElementCombinatorImpl implements HideElementCombinator {
4872 /** 4872 /**
4873 * The unlinked representation of the combinator in the summary. 4873 * The unlinked representation of the combinator in the summary.
4874 */ 4874 */
(...skipping 3730 matching lines...) Expand 10 before | Expand all | Expand 10 after
8605 8605
8606 @override 8606 @override
8607 void visitElement(Element element) { 8607 void visitElement(Element element) {
8608 int offset = element.nameOffset; 8608 int offset = element.nameOffset;
8609 if (offset != -1) { 8609 if (offset != -1) {
8610 map[offset] = element; 8610 map[offset] = element;
8611 } 8611 }
8612 super.visitElement(element); 8612 super.visitElement(element);
8613 } 8613 }
8614 } 8614 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/compile_time_error_code_driver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698