-
-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
87 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,15 +9,14 @@ | |
* Contributors: | ||
* Fabio Zadrozny <[email protected]> - initial API and implementation | ||
******************************************************************************/ | ||
package org.python.pydev.refactoring.ast.visitors.rewriter; | ||
package org.python.pydev.parser.prettyprinterv2; | ||
|
||
import org.python.pydev.core.IGrammarVersionProvider; | ||
import org.python.pydev.core.IIndentPrefs; | ||
import org.python.pydev.core.autoedit.DefaultIndentPrefs; | ||
import org.python.pydev.parser.PyParser; | ||
import org.python.pydev.parser.jython.SimpleNode; | ||
import org.python.pydev.parser.jython.ast.factory.AdapterPrefs; | ||
import org.python.pydev.parser.prettyprinterv2.PrettyPrinterPrefsV2; | ||
import org.python.pydev.parser.prettyprinterv2.PrettyPrinterV2; | ||
|
||
/** | ||
* This class just provides an interface for using the rewriter. | ||
|
@@ -26,7 +25,7 @@ public final class Rewriter { | |
|
||
public static String reparsed(String source, AdapterPrefs adapterPrefs) { | ||
try { | ||
SimpleNode root = org.python.pydev.ast.adapters.visitors.VisitorFactory.getRootNodeFromString(source, | ||
SimpleNode root = PyParser.parseSimple(source, | ||
adapterPrefs.versionProvider); | ||
return createSourceFromAST(root, adapterPrefs); | ||
} catch (Throwable e) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.