renaming/code moving to meet the code style
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
|
||||
package org.jetbrains.jet.codegen;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
import org.jetbrains.jet.compiler.CompileEnvironment;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
@@ -26,7 +25,7 @@ public class CompileTextTest extends CodegenTestCase {
|
||||
public void testMe() throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IllegalAccessException {
|
||||
String text = "import org.jetbrains.jet.codegen.CompileTextTest; fun x() = CompileTextTest()";
|
||||
CompileEnvironment compileEnvironment = new CompileEnvironment();
|
||||
compileEnvironment.getMyEnvironment().addToClasspathFromClassLoader(getClass().getClassLoader());
|
||||
compileEnvironment.getEnvironment().addToClasspathFromClassLoader(getClass().getClassLoader());
|
||||
ClassLoader classLoader = compileEnvironment.compileText(text);
|
||||
Class<?> namespace = classLoader.loadClass("namespace");
|
||||
Method x = namespace.getDeclaredMethod("x");
|
||||
|
||||
@@ -98,8 +98,8 @@ public class TestlibTest extends CodegenTestCase {
|
||||
TestCase.class.getClassLoader()));
|
||||
|
||||
InjectorForJvmCodegen injector = new InjectorForJvmCodegen(
|
||||
session.getMyBindingContext().getStandardLibrary(),
|
||||
session.getMyBindingContext().getBindingContext(),
|
||||
session.getBindingContext().getStandardLibrary(),
|
||||
session.getBindingContext().getBindingContext(),
|
||||
session.getSourceFileNamespaces(),
|
||||
getProject());
|
||||
JetTypeMapper typeMapper = injector.getJetTypeMapper();
|
||||
@@ -110,7 +110,7 @@ public class TestlibTest extends CodegenTestCase {
|
||||
if(decl instanceof JetClass) {
|
||||
JetClass jetClass = (JetClass) decl;
|
||||
|
||||
ClassDescriptor descriptor = (ClassDescriptor) session.getMyBindingContext().getBindingContext().get(BindingContext.DECLARATION_TO_DESCRIPTOR, jetClass);
|
||||
ClassDescriptor descriptor = (ClassDescriptor) session.getBindingContext().getBindingContext().get(BindingContext.DECLARATION_TO_DESCRIPTOR, jetClass);
|
||||
Set<JetType> allSuperTypes = new THashSet<JetType>();
|
||||
CodegenUtil.addSuperTypes(descriptor.getDefaultType(), allSuperTypes);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user