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

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: Addressing feedback Created 4 years, 7 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 2787 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | pkg/analyzer/test/generated/hint_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698