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

Side by Side Diff: pkg/analyzer/lib/src/generated/engine.dart

Issue 848463003: Pluggable lint verifiers first step and basic lint task tests. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine; 8 library engine;
9 9
10 import "dart:math" as math; 10 import "dart:math" as math;
(...skipping 8818 matching lines...) Expand 10 before | Expand all | Expand 10 after
8829 "generate Dart lints for ${librarySource.fullName}"; 8829 "generate Dart lints for ${librarySource.fullName}";
8830 } 8830 }
8831 8831
8832 @override 8832 @override
8833 accept(AnalysisTaskVisitor visitor) => 8833 accept(AnalysisTaskVisitor visitor) =>
8834 visitor.visitGenerateDartLintsTask(this); 8834 visitor.visitGenerateDartLintsTask(this);
8835 8835
8836 @override 8836 @override
8837 void internalPerform() { 8837 void internalPerform() {
8838 8838
8839 List<CompilationUnit> compilationUnits = 8839 Iterable<CompilationUnit> compilationUnits =
8840 _units.map((TimestampedData<CompilationUnit> unit) => unit.data); 8840 _units.map((TimestampedData<CompilationUnit> unit) => unit.data);
8841 RecordingErrorListener errorListener = new RecordingErrorListener(); 8841 RecordingErrorListener errorListener = new RecordingErrorListener();
8842 LintGenerator lintGenerator = 8842 LintGenerator lintGenerator =
8843 new LintGenerator(compilationUnits, errorListener); 8843 new LintGenerator(compilationUnits, errorListener);
8844 lintGenerator.generate(); 8844 lintGenerator.generate();
8845 8845
8846 lintMap = new HashMap<Source, List<AnalysisError>>(); 8846 lintMap = new HashMap<Source, List<AnalysisError>>();
8847 compilationUnits.forEach((CompilationUnit unit) { 8847 compilationUnits.forEach((CompilationUnit unit) {
8848 Source source = unit.element.source; 8848 Source source = unit.element.source;
8849 lintMap[source] = errorListener.getErrorsForSource(source); 8849 lintMap[source] = errorListener.getErrorsForSource(source);
(...skipping 3312 matching lines...) Expand 10 before | Expand all | Expand 10 after
12162 if (element.id == _id) { 12162 if (element.id == _id) {
12163 result = element; 12163 result = element;
12164 throw new _ElementByIdFinderException(); 12164 throw new _ElementByIdFinderException();
12165 } 12165 }
12166 super.visitElement(element); 12166 super.visitElement(element);
12167 } 12167 }
12168 } 12168 }
12169 12169
12170 class _ElementByIdFinderException { 12170 class _ElementByIdFinderException {
12171 } 12171 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/resolver.dart » ('j') | pkg/analyzer/lib/src/generated/resolver.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698