Create from Usage: Secondary constructor support

This commit is contained in:
Alexey Sedunov
2015-03-26 14:14:37 +03:00
parent 11675322ee
commit 15dddf362e
8 changed files with 174 additions and 110 deletions
@@ -207,6 +207,10 @@ public class JetPsiFactory(private val project: Project) {
return createDeclaration(funDecl)
}
public fun createSecondaryConstructor(decl: String): JetSecondaryConstructor {
return createClass("class Foo {\n $decl \n}").getSecondaryConstructors().first()
}
public fun createModifierList(modifier: JetKeywordToken): JetModifierList {
return createModifierList(modifier.getValue())
}