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

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

Issue 1922563003: @deprecated should work on 'called' objects (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698