SmartStepInto in top level functions. Add test for debugger

#KT-4737 Fixed
This commit is contained in:
Natalia Ukhorskaya
2014-03-28 11:48:39 +04:00
parent 4aa3dff2a2
commit 32a6205d81
39 changed files with 800 additions and 19 deletions
@@ -48,7 +48,7 @@ public class MockLibraryUtil {
File contentDir = JetTestUtils.tmpDir("lib-content");
File classesDir = new File(contentDir, "classes");
compile(sourcesPath, classesDir);
compileKotlin(sourcesPath, classesDir);
List<File> javaFiles = FileUtil.findFilesByMask(Pattern.compile(".*\\.java"), new File(sourcesPath));
if (!javaFiles.isEmpty()) {
@@ -88,7 +88,7 @@ public class MockLibraryUtil {
}
// Runs compiler in custom class loader to avoid effects caused by replacing Application with another one created in compiler.
private static void compile(String sourcesPath, File outDir) {
public static void compileKotlin(@NotNull String sourcesPath, @NotNull File outDir) {
try {
ByteArrayOutputStream outStream = new ByteArrayOutputStream();
Class<?> compilerClass = getCompilerClass();