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

Unified Diff: pkg/analyzer/example/parser_driver.dart

Issue 1749143003: Add @overrides to (a lot of) analyzer. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: options Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/.analysis_options ('k') | pkg/analyzer/example/resolver_driver.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/example/parser_driver.dart
diff --git a/pkg/analyzer/example/parser_driver.dart b/pkg/analyzer/example/parser_driver.dart
index c302e4140938b2a8e460d635879b7bc6ac981f6e..ccc5bb9d876efd63b3f1f09c934838a0b9592c9d 100644
--- a/pkg/analyzer/example/parser_driver.dart
+++ b/pkg/analyzer/example/parser_driver.dart
@@ -43,6 +43,7 @@ _parse(File file) {
}
class _ASTVisitor extends GeneralizingAstVisitor {
+ @override
visitNode(AstNode node) {
print('${node.runtimeType} : <"$node">');
return super.visitNode(node);
@@ -52,5 +53,6 @@ class _ASTVisitor extends GeneralizingAstVisitor {
class _ErrorCollector extends AnalysisErrorListener {
List<AnalysisError> errors;
_ErrorCollector() : errors = new List<AnalysisError>();
+ @override
onError(error) => errors.add(error);
}
« no previous file with comments | « pkg/analyzer/.analysis_options ('k') | pkg/analyzer/example/resolver_driver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698