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

Side by Side Diff: lib/src/summary.dart

Issue 1174643003: expose strong checker API, for use by analyzer_cli (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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 /// Summary of error messages produced by a `SummaryReporter`. 5 /// Summary of error messages produced by a `SummaryReporter`.
6 library dev_compiler.src.summary; 6 library dev_compiler.src.summary;
7 7
8 import 'package:source_span/source_span.dart'; 8 import 'package:source_span/source_span.dart';
9 9
10 /// Summary information computed by the DDC checker. 10 /// Summary information computed by the DDC checker.
11 abstract class Summary { 11 abstract class Summary {
12 Map toJsonMap(); 12 Map toJsonMap();
13 13
14 void accept(SummaryVisitor visitor); 14 void accept(SummaryVisitor visitor);
15 } 15 }
16 16
17 /// Summary for the entire program. 17 /// Summary for the entire program.
18 class GlobalSummary implements Summary { 18 class GlobalSummary implements Summary {
19 /// Summary from the system libaries. 19 /// Summary from the system libraries.
20 final Map<String, LibrarySummary> system = <String, LibrarySummary>{}; 20 final Map<String, LibrarySummary> system = <String, LibrarySummary>{};
21 21
22 /// Summary for libraries in packages. 22 /// Summary for libraries in packages.
23 final Map<String, PackageSummary> packages = <String, PackageSummary>{}; 23 final Map<String, PackageSummary> packages = <String, PackageSummary>{};
24 24
25 /// Summary for loose files 25 /// Summary for loose files
26 // TODO(sigmund): consider inferring the package from the pubspec instead? 26 // TODO(sigmund): consider inferring the package from the pubspec instead?
27 final Map<String, IndividualSummary> loose = <String, IndividualSummary>{}; 27 final Map<String, IndividualSummary> loose = <String, IndividualSummary>{};
28 28
29 GlobalSummary(); 29 GlobalSummary();
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 } 213 }
214 } 214 }
215 215
216 void visitHtml(HtmlSummary html) { 216 void visitHtml(HtmlSummary html) {
217 for (var msg in html.messages) { 217 for (var msg in html.messages) {
218 msg.accept(this); 218 msg.accept(this);
219 } 219 }
220 } 220 }
221 void visitMessage(MessageSummary message) {} 221 void visitMessage(MessageSummary message) {}
222 } 222 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698