OLD | NEW |
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; | 5 library engine.resolver; |
6 | 6 |
7 import "dart:math" as math; | 7 import "dart:math" as math; |
8 import 'dart:collection'; | 8 import 'dart:collection'; |
9 | 9 |
10 import 'package:analyzer/src/generated/utilities_collection.dart'; | 10 import 'package:analyzer/src/generated/utilities_collection.dart'; |
(...skipping 5138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5149 | 5149 |
5150 /** | 5150 /** |
5151 * Initialize a newly created visitor to build implicit constructors. | 5151 * Initialize a newly created visitor to build implicit constructors. |
5152 * | 5152 * |
5153 * The visit methods will pass closures to [_callback] to indicate what | 5153 * The visit methods will pass closures to [_callback] to indicate what |
5154 * computation needs to be performed, and its dependency order. | 5154 * computation needs to be performed, and its dependency order. |
5155 */ | 5155 */ |
5156 ImplicitConstructorBuilder(this.errorListener, this._callback); | 5156 ImplicitConstructorBuilder(this.errorListener, this._callback); |
5157 | 5157 |
5158 @override | 5158 @override |
5159 void visitClassElement(ClassElementImpl classElement) { | 5159 void visitClassElement(ClassElement classElement) { |
5160 classElement.mixinErrorsReported = false; | 5160 (classElement as ClassElementImpl).mixinErrorsReported = false; |
5161 if (classElement.isTypedef) { | 5161 if (classElement.isTypedef) { |
5162 _visitClassTypeAlias(classElement); | 5162 _visitClassTypeAlias(classElement); |
5163 } else { | 5163 } else { |
5164 _visitClassDeclaration(classElement); | 5164 _visitClassDeclaration(classElement); |
5165 } | 5165 } |
5166 } | 5166 } |
5167 | 5167 |
5168 @override | 5168 @override |
5169 void visitCompilationUnitElement(CompilationUnitElement element) { | 5169 void visitCompilationUnitElement(CompilationUnitElement element) { |
5170 element.types.forEach(visitClassElement); | 5170 element.types.forEach(visitClassElement); |
(...skipping 10299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15470 nonFields.add(node); | 15470 nonFields.add(node); |
15471 return null; | 15471 return null; |
15472 } | 15472 } |
15473 | 15473 |
15474 @override | 15474 @override |
15475 Object visitNode(AstNode node) => node.accept(TypeResolverVisitor_this); | 15475 Object visitNode(AstNode node) => node.accept(TypeResolverVisitor_this); |
15476 | 15476 |
15477 @override | 15477 @override |
15478 Object visitWithClause(WithClause node) => null; | 15478 Object visitWithClause(WithClause node) => null; |
15479 } | 15479 } |
OLD | NEW |