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 2787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2798 } | 2798 } |
2799 // Dart2js analysis. | 2799 // Dart2js analysis. |
2800 if (analysisOptions.dart2jsHint) { | 2800 if (analysisOptions.dart2jsHint) { |
2801 unit.accept(new Dart2JSVerifier(errorReporter)); | 2801 unit.accept(new Dart2JSVerifier(errorReporter)); |
2802 } | 2802 } |
2803 // Dart best practices. | 2803 // Dart best practices. |
2804 InheritanceManager inheritanceManager = | 2804 InheritanceManager inheritanceManager = |
2805 new InheritanceManager(libraryElement); | 2805 new InheritanceManager(libraryElement); |
2806 TypeProvider typeProvider = getRequiredInput(TYPE_PROVIDER_INPUT); | 2806 TypeProvider typeProvider = getRequiredInput(TYPE_PROVIDER_INPUT); |
2807 | 2807 |
2808 unit.accept(new BestPracticesVerifier(errorReporter, typeProvider, | 2808 unit.accept(new BestPracticesVerifier( |
2809 typeSystem: typeSystem)); | 2809 errorReporter, typeProvider, libraryElement, typeSystem: typeSystem)); |
2810 unit.accept(new OverrideVerifier(errorReporter, inheritanceManager)); | 2810 unit.accept(new OverrideVerifier(errorReporter, inheritanceManager)); |
2811 // Find to-do comments. | 2811 // Find to-do comments. |
2812 new ToDoFinder(errorReporter).findIn(unit); | 2812 new ToDoFinder(errorReporter).findIn(unit); |
2813 // | 2813 // |
2814 // Record outputs. | 2814 // Record outputs. |
2815 // | 2815 // |
2816 outputs[HINTS] = errorListener.errors; | 2816 outputs[HINTS] = errorListener.errors; |
2817 } | 2817 } |
2818 | 2818 |
2819 /** | 2819 /** |
(...skipping 2721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5541 | 5541 |
5542 @override | 5542 @override |
5543 bool moveNext() { | 5543 bool moveNext() { |
5544 if (_newSources.isEmpty) { | 5544 if (_newSources.isEmpty) { |
5545 return false; | 5545 return false; |
5546 } | 5546 } |
5547 currentTarget = _newSources.removeLast(); | 5547 currentTarget = _newSources.removeLast(); |
5548 return true; | 5548 return true; |
5549 } | 5549 } |
5550 } | 5550 } |
OLD | NEW |