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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/dom/rewrite/ASTRewriteAnalyzer.java

Issue 10516006: Issue 3268. Support for replacing 'assert' statement with 'assert' function (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes for review comments Created 8 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 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/dom/rewrite/ASTRewriteAnalyzer.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/dom/rewrite/ASTRewriteAnalyzer.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/dom/rewrite/ASTRewriteAnalyzer.java
index 0fd770a780984857efaa3e987f3f6fac16e5e129..fcd89187c274ad9e0d561afe112a7934dcb0ecd3 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/dom/rewrite/ASTRewriteAnalyzer.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/internal/dom/rewrite/ASTRewriteAnalyzer.java
@@ -16,7 +16,6 @@ package com.google.dart.tools.core.internal.dom.rewrite;
import com.google.dart.compiler.ast.ASTVisitor;
import com.google.dart.compiler.ast.DartArrayAccess;
import com.google.dart.compiler.ast.DartArrayLiteral;
-import com.google.dart.compiler.ast.DartAssertion;
import com.google.dart.compiler.ast.DartBinaryExpression;
import com.google.dart.compiler.ast.DartBlock;
import com.google.dart.compiler.ast.DartBooleanLiteral;
@@ -743,23 +742,6 @@ public final class ASTRewriteAnalyzer {
}
@Override
- public Object visitAssertion(DartAssertion node) {
- try {
- beforeRequiredSpaceIndex = getScanner().getNextEndOffset(
- node.getSourceInfo().getOffset(),
- true);
- if (!hasChildrenChanges(node)) {
- return doVisitUnchangedChildren(node);
- }
- ensureSpaceBeforeReplace(node);
- int offset = rewriteRequiredNode(node, PropertyDescriptorHelper.DART_ASSERTION_EXPRESSION);
- } catch (CoreException e) {
- handleException(e);
- }
- return null;
- }
-
- @Override
public Object visitBinaryExpression(DartBinaryExpression node) {
if (!hasChildrenChanges(node)) {
return doVisitUnchangedChildren(node);

Powered by Google App Engine
This is Rietveld 408576698