コード例 #1
0
  @Override
  protected void tearDown() throws Exception {
    scopeWithImports = null;

    expressionTypingServices = null;
    typeResolver = null;

    builtIns = null;

    super.tearDown();
  }
コード例 #2
0
ファイル: TypeUnifierTest.java プロジェクト: homburg/kotlin
  @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());
  }
コード例 #3
0
  @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");
  }