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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/formatter/CodeSnippetParsingUtil.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 side-by-side diff with in-line comments
Download patch
Index: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/formatter/CodeSnippetParsingUtil.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/formatter/CodeSnippetParsingUtil.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/formatter/CodeSnippetParsingUtil.java
index 4e46f6fcd6da5f8e12a351918e8ecbd4d8b5724f..f98a57ab9d9ee1a5e2c8c28644a9d09107329f90 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/formatter/CodeSnippetParsingUtil.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/formatter/CodeSnippetParsingUtil.java
@@ -15,6 +15,7 @@ package com.google.dart.tools.core.internal.formatter;
import com.google.dart.compiler.DartCompilationError;
import com.google.dart.compiler.DartCompilerListener;
+import com.google.dart.compiler.Source;
import com.google.dart.compiler.ast.DartComment;
import com.google.dart.compiler.ast.DartExpression;
import com.google.dart.compiler.ast.DartMethodDefinition;
@@ -146,6 +147,10 @@ public class CodeSnippetParsingUtil {
public void typeError(DartCompilationError event) {
compilationResult.problemCount += 1;
}
+
+ @Override
+ public void unitCompiled(DartUnit unit) {
+ }
};
DartScannerParserContext ctx = new DartScannerParserContext(null, sourceCode, listener);
CommentPreservingParser parser = new CommentPreservingParser(sourceCode, listener, false);

Powered by Google App Engine
This is Rietveld 408576698