From 0a0ac2396e3fc6b8b9161c6329f7ff29fbacb373 Mon Sep 17 00:00:00 2001 From: Markus Schorn Date: Fri, 11 Apr 2008 06:50:42 +0000 Subject: [PATCH] Support case-ranges in the expression writer, related to bug 211882. --- .../internal/core/dom/rewrite/astwriter/ExpressionWriter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/astwriter/ExpressionWriter.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/astwriter/ExpressionWriter.java index 4d4c9e34b34..17556e7af79 100644 --- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/astwriter/ExpressionWriter.java +++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/rewrite/astwriter/ExpressionWriter.java @@ -82,6 +82,7 @@ public class ExpressionWriter extends NodeWriter{ private static final String MAX_OP = " >? "; //$NON-NLS-1$ private static final String PMARROW_OP = "->*"; //$NON-NLS-1$ private static final String PMDOT_OP = ".*"; //$NON-NLS-1$ + private static final String ELLIPSES = "..."; //$NON-NLS-1$ private static final String NOT_EQUALS_OP = " != "; //$NON-NLS-1$ private static final String EQUALS_OP = " == "; //$NON-NLS-1$ private static final String BINARY_OR_ASSIGN = " |= "; //$NON-NLS-1$ @@ -222,6 +223,8 @@ public class ExpressionWriter extends NodeWriter{ return MAX_OP; case IGPPASTBinaryExpression.op_min: return MIN_OP; + case IASTBinaryExpression.op_ellipses: + return ELLIPSES; default: System.err.println("Unknown unaryExpressionType: " + operator); //$NON-NLS-1$ throw new IllegalArgumentException("Unknown unaryExpressionType: " + operator); //$NON-NLS-1$