@Override protected void tearDown() throws Exception { scopeWithImports = null; expressionTypingServices = null; typeResolver = null; builtIns = null; super.tearDown(); }
@Override public void setUp() throws Exception { super.setUp(); ModuleDescriptorImpl module = JetTestUtils.createEmptyModule(); builtIns = module.getBuiltIns(); typeResolver = InjectionKt.createContainerForTests(getProject(), module).getTypeResolver(); x = createTypeVariable("X"); y = createTypeVariable("Y"); variables = Sets.newHashSet(x.getTypeConstructor(), y.getTypeConstructor()); }
@Override public void setUp() throws Exception { super.setUp(); builtIns = KotlinBuiltIns.getInstance(); ContainerForTests container = DiPackage.createContainerForTests(getProject(), JetTestUtils.createEmptyModule()); typeResolver = container.getTypeResolver(); expressionTypingServices = container.getExpressionTypingServices(); scopeWithImports = getDeclarationsScope("compiler/testData/type-checker-test.kt"); }