OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 package com.google.dart.compiler; | 5 package com.google.dart.compiler; |
6 | 6 |
| 7 import com.google.dart.compiler.ast.DartUnit; |
| 8 |
7 /** | 9 /** |
8 * A default implementation of {@link DartCompilerListener} which counts | 10 * A default implementation of {@link DartCompilerListener} which counts |
9 * compilation errors. | 11 * compilation errors. |
10 */ | 12 */ |
11 public class DefaultDartCompilerListener extends DartCompilerListener { | 13 public class DefaultDartCompilerListener extends DartCompilerListener { |
12 | 14 |
13 /** | 15 /** |
14 * The number of (fatal) problems that occurred during compilation. | 16 * The number of (fatal) problems that occurred during compilation. |
15 */ | 17 */ |
16 private int problemCount = 0; | 18 private int problemCount = 0; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 protected void incrementWarningCount() { | 95 protected void incrementWarningCount() { |
94 warningCount++; | 96 warningCount++; |
95 } | 97 } |
96 | 98 |
97 /** | 99 /** |
98 * Increment the {@link #typeErrorCount} by 1 | 100 * Increment the {@link #typeErrorCount} by 1 |
99 */ | 101 */ |
100 protected void incrementTypeErrorCount() { | 102 protected void incrementTypeErrorCount() { |
101 typeErrorCount++; | 103 typeErrorCount++; |
102 } | 104 } |
| 105 |
| 106 @Override |
| 107 public void unitCompiled(DartUnit unit) { |
| 108 } |
103 } | 109 } |
OLD | NEW |