Replace object$ -> OBJECT$, instance$ -> INSTANCE$ in the project
This commit is contained in:
+2
-2
@@ -31,7 +31,7 @@ public abstract class AbstractMultiFileJvmBasicCompletionTest extends KotlinComp
|
||||
protected void doTest(@NotNull String testPath) throws Exception {
|
||||
configureByFile(getTestName(false) + ".kt", "");
|
||||
boolean shouldFail = testPath.contains("NoSpecifiedType");
|
||||
AstAccessControl.instance$.testWithControlledAccessToAst(
|
||||
AstAccessControl.INSTANCE$.testWithControlledAccessToAst(
|
||||
shouldFail, getFile().getVirtualFile(), getProject(), getTestRootDisposable(),
|
||||
new Function0<Unit>() {
|
||||
@Override
|
||||
@@ -43,7 +43,7 @@ public abstract class AbstractMultiFileJvmBasicCompletionTest extends KotlinComp
|
||||
return myItems;
|
||||
}
|
||||
});
|
||||
return Unit.instance$;
|
||||
return Unit.INSTANCE$;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
@@ -57,13 +57,13 @@ public abstract class AbstractLazyResolveByStubTest extends KotlinCodeInsightTes
|
||||
configureByFile(path);
|
||||
configureModule(getModule(), JetWithJdkAndRuntimeLightProjectDescriptor.INSTANCE);
|
||||
boolean shouldFail = getTestName(false).equals("ClassWithConstVal");
|
||||
AstAccessControl.instance$.testWithControlledAccessToAst(
|
||||
AstAccessControl.INSTANCE$.testWithControlledAccessToAst(
|
||||
shouldFail, getProject(), getTestRootDisposable(),
|
||||
new Function0<Unit>() {
|
||||
@Override
|
||||
public Unit invoke() {
|
||||
performTest(path, checkPrimaryConstructors, checkPropertyAccessors);
|
||||
return Unit.instance$;
|
||||
return Unit.INSTANCE$;
|
||||
}
|
||||
}
|
||||
);
|
||||
@@ -71,7 +71,7 @@ public abstract class AbstractLazyResolveByStubTest extends KotlinCodeInsightTes
|
||||
|
||||
private void performTest(@NotNull String path, boolean checkPrimaryConstructors, boolean checkPropertyAccessors) {
|
||||
ResolveSessionForBodies resolveSession =
|
||||
KotlinCacheService.object$.getInstance(getFile().getProject()).getLazyResolveSession((JetFile) getFile());
|
||||
KotlinCacheService.OBJECT$.getInstance(getFile().getProject()).getLazyResolveSession((JetFile) getFile());
|
||||
ModuleDescriptor module = resolveSession.getModuleDescriptor();
|
||||
PackageViewDescriptor packageViewDescriptor = module.getPackage(new FqName("test"));
|
||||
Assert.assertNotNull(packageViewDescriptor);
|
||||
|
||||
@@ -41,13 +41,13 @@ public abstract class AbstractMultiFileHighlightingTest extends KotlinCompletion
|
||||
public void doTest(@NotNull String filePath) throws Exception {
|
||||
configureByFile(new File(filePath).getName(), "");
|
||||
boolean shouldFail = getName().contains("UnspecifiedType");
|
||||
AstAccessControl.instance$.testWithControlledAccessToAst(
|
||||
AstAccessControl.INSTANCE$.testWithControlledAccessToAst(
|
||||
shouldFail, getFile().getVirtualFile(), getProject(), getTestRootDisposable(),
|
||||
new Function0<Unit>() {
|
||||
@Override
|
||||
public Unit invoke() {
|
||||
checkHighlighting(myEditor, true, false);
|
||||
return Unit.instance$;
|
||||
return Unit.INSTANCE$;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user