示例#1
0
 @Override
 public void setUp() throws Exception {
   super.setUp();
   library = JetStandardLibrary.getJetStandardLibrary(getProject());
   semanticServices = JetSemanticServices.createSemanticServices(library);
   descriptorResolver = semanticServices.getClassDescriptorResolver(JetTestUtils.DUMMY_TRACE);
 }
示例#2
0
  @Override
  protected void tearDown() throws Exception {
    scopeWithImports = null;

    expressionTypingServices = null;
    typeResolver = null;

    builtIns = null;

    super.tearDown();
  }
示例#3
0
  @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");
  }