Script refactoring, parser: wrap statements in script as if they are init blocks of a class
This commit is contained in:
@@ -41,6 +41,12 @@ public abstract class AbstractParsingTest extends ParsingTestCase {
|
||||
System.setProperty("idea.platform.prefix", "Idea");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setUp() throws Exception {
|
||||
super.setUp();
|
||||
getProject().registerService(KotlinScriptDefinitionProvider.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getTestDataPath() {
|
||||
return KotlinTestUtils.getHomeDirectory();
|
||||
|
||||
Reference in New Issue
Block a user