one-line PyStatementList handles insertion correctly (PY-149)

This commit is contained in:
Dmitry Jemerov
2012-09-05 23:36:16 +02:00
parent 805753403c
commit 61dd175ed2
5 changed files with 66 additions and 3 deletions
@@ -63,6 +63,9 @@ public abstract class PyElementGenerator {
@NotNull
public abstract <T> T createFromText(LanguageLevel langLevel, Class<T> aClass, final String text);
@NotNull
public abstract <T> T createPhysicalFromText(LanguageLevel langLevel, Class<T> aClass, final String text);
/**
* Creates an arbitrary PSI element from text, by creating a bigger construction and then cutting the proper subelement.
* Will produce all kinds of exceptions if the path or class would not match the PSI tree.