| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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.task.dart; | 5 library analyzer.src.task.dart; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 import 'dart:math' as math; | 8 import 'dart:math' as math; |
| 9 | 9 |
| 10 import 'package:analyzer/src/generated/ast.dart'; | 10 import 'package:analyzer/src/generated/ast.dart'; |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 | 327 |
| 328 @override | 328 @override |
| 329 void internalPerform() { | 329 void internalPerform() { |
| 330 List<AnalysisError> errors = <AnalysisError>[]; | 330 List<AnalysisError> errors = <AnalysisError>[]; |
| 331 // | 331 // |
| 332 // Prepare inputs. | 332 // Prepare inputs. |
| 333 // | 333 // |
| 334 ClassElementImpl classElement = this.target; | 334 ClassElementImpl classElement = this.target; |
| 335 List<ConstructorElement> superConstructors = inputs[SUPER_CONSTRUCTORS]; | 335 List<ConstructorElement> superConstructors = inputs[SUPER_CONSTRUCTORS]; |
| 336 DartType superType = classElement.supertype; | 336 DartType superType = classElement.supertype; |
| 337 if (superType == null) { |
| 338 return; |
| 339 } |
| 337 // | 340 // |
| 338 // Shortcut for ClassElement(s) without implicit constructors. | 341 // Shortcut for ClassElement(s) without implicit constructors. |
| 339 // | 342 // |
| 340 if (superConstructors == null) { | 343 if (superConstructors == null) { |
| 341 outputs[CONSTRUCTORS] = classElement.constructors; | 344 outputs[CONSTRUCTORS] = classElement.constructors; |
| 342 outputs[CONSTRUCTORS_ERRORS] = AnalysisError.NO_ERRORS; | 345 outputs[CONSTRUCTORS_ERRORS] = AnalysisError.NO_ERRORS; |
| 343 return; | 346 return; |
| 344 } | 347 } |
| 345 // | 348 // |
| 346 // ClassTypeAlias | 349 // ClassTypeAlias |
| (...skipping 2257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2604 @override | 2607 @override |
| 2605 bool moveNext() { | 2608 bool moveNext() { |
| 2606 if (_newSources.isEmpty) { | 2609 if (_newSources.isEmpty) { |
| 2607 return false; | 2610 return false; |
| 2608 } | 2611 } |
| 2609 currentTarget = _newSources.first; | 2612 currentTarget = _newSources.first; |
| 2610 _newSources.remove(currentTarget); | 2613 _newSources.remove(currentTarget); |
| 2611 return true; | 2614 return true; |
| 2612 } | 2615 } |
| 2613 } | 2616 } |
| OLD | NEW |