private static void dodgeExtendedStringLiterals(EcjTreePrinter printer) { printer.skipProperty(StringLiteral.class, "lineNumber"); printer.skipPropertyIfHasValue(ExtendedStringLiteral.class, "lineNumber", -1); printer.skipPropertyIfHasValue(ExtendedStringLiteral.class, "lineNumber", -2); printer.skipPropertyIfHasValue(StringLiteral.class, "lineNumber", -1); printer.skipPropertyIfHasValue(StringLiteral.class, "lineNumber", -2); printer.stringReplace("ExtendedStringLiteral", "StringLiteral"); }
@Override public boolean visit(ExtendedStringLiteral node, BlockScope scope) { fixPositions(setGeneratedBy(node, source)); return super.visit(node, scope); }
public boolean visit( ExtendedStringLiteral extendedStringLiteral, BlockScope scope) { addRealFragment(extendedStringLiteral); return false; }
@Override public void endVisit(ExtendedStringLiteral x, BlockScope scope) { endVisit((StringLiteral) x, scope); }
@Override public boolean visit(ExtendedStringLiteral node, BlockScope scope) { setGeneratedBy(node, source); applyOffsetExpression(node); return super.visit(node, scope); }