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

Side by Side Diff: compiler/java/com/google/dart/compiler/DefaultDartCompilerListener.java

Issue 8285004: Ground work for addition to new listener api (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added some comments Created 9 years, 2 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) 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698