protected void runRewriter() throws Throwable { setTestGenerated( Rewriter.reparsed( data.source, new AdapterPrefs( "\n", new IGrammarVersionProvider() { @Override public int getGrammarVersion() throws MisconfigurationException { return IGrammarVersionProvider.GRAMMAR_PYTHON_VERSION_2_7; } }))); }
protected String getFormattedNode() throws MisconfigurationException { String source = Rewriter.createSourceFromAST(getEditNode(), adapterPrefs); return source.trim(); }