| 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 | 8 |
| 9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
| 10 import 'package:analyzer/dart/ast/token.dart'; | 10 import 'package:analyzer/dart/ast/token.dart'; |
| (...skipping 2788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2799 } | 2799 } |
| 2800 // Dart2js analysis. | 2800 // Dart2js analysis. |
| 2801 if (analysisOptions.dart2jsHint) { | 2801 if (analysisOptions.dart2jsHint) { |
| 2802 unit.accept(new Dart2JSVerifier(errorReporter)); | 2802 unit.accept(new Dart2JSVerifier(errorReporter)); |
| 2803 } | 2803 } |
| 2804 // Dart best practices. | 2804 // Dart best practices. |
| 2805 InheritanceManager inheritanceManager = | 2805 InheritanceManager inheritanceManager = |
| 2806 new InheritanceManager(libraryElement); | 2806 new InheritanceManager(libraryElement); |
| 2807 TypeProvider typeProvider = getRequiredInput(TYPE_PROVIDER_INPUT); | 2807 TypeProvider typeProvider = getRequiredInput(TYPE_PROVIDER_INPUT); |
| 2808 | 2808 |
| 2809 unit.accept(new BestPracticesVerifier(errorReporter, typeProvider, | 2809 unit.accept(new BestPracticesVerifier( |
| 2810 typeSystem: typeSystem)); | 2810 errorReporter, typeProvider, libraryElement, typeSystem: typeSystem)); |
| 2811 unit.accept(new OverrideVerifier(errorReporter, inheritanceManager)); | 2811 unit.accept(new OverrideVerifier(errorReporter, inheritanceManager)); |
| 2812 // Find to-do comments. | 2812 // Find to-do comments. |
| 2813 new ToDoFinder(errorReporter).findIn(unit); | 2813 new ToDoFinder(errorReporter).findIn(unit); |
| 2814 // | 2814 // |
| 2815 // Record outputs. | 2815 // Record outputs. |
| 2816 // | 2816 // |
| 2817 outputs[HINTS] = errorListener.errors; | 2817 outputs[HINTS] = errorListener.errors; |
| 2818 } | 2818 } |
| 2819 | 2819 |
| 2820 /** | 2820 /** |
| (...skipping 2729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5550 | 5550 |
| 5551 @override | 5551 @override |
| 5552 bool moveNext() { | 5552 bool moveNext() { |
| 5553 if (_newSources.isEmpty) { | 5553 if (_newSources.isEmpty) { |
| 5554 return false; | 5554 return false; |
| 5555 } | 5555 } |
| 5556 currentTarget = _newSources.removeLast(); | 5556 currentTarget = _newSources.removeLast(); |
| 5557 return true; | 5557 return true; |
| 5558 } | 5558 } |
| 5559 } | 5559 } |
| OLD | NEW |