@Override public void setUp() throws Exception { super.setUp(); library = JetStandardLibrary.getJetStandardLibrary(getProject()); semanticServices = JetSemanticServices.createSemanticServices(library); descriptorResolver = semanticServices.getClassDescriptorResolver(JetTestUtils.DUMMY_TRACE); }
@Override protected void tearDown() throws Exception { scopeWithImports = null; expressionTypingServices = null; typeResolver = null; builtIns = null; super.tearDown(); }
@Override public void setUp() throws Exception { super.setUp(); builtIns = KotlinBuiltIns.getInstance(); InjectorForTests injector = new InjectorForTests(getProject(), JetTestUtils.createEmptyModule()); typeResolver = injector.getTypeResolver(); expressionTypingServices = injector.getExpressionTypingServices(); scopeWithImports = getDeclarationsScope("compiler/testData/type-checker-test.kt"); }