Minor: rename

This commit is contained in:
Natalia Ukhorskaya
2014-12-24 13:08:48 +03:00
parent 3b81d63334
commit b709baa9b4
6 changed files with 14 additions and 14 deletions
@@ -191,7 +191,7 @@ public class JvmCodegenUtil {
private static boolean isDebuggerContext(@NotNull MethodContext context) {
JetFile file = DescriptorToSourceUtils.getContainingFile(context.getContextDescriptor());
return file != null && CodeFragmentUtilPackage.getSkipVisibilityCheck(file);
return file != null && CodeFragmentUtilPackage.getSuppressDiagnosticsInDebugMode(file);
}
@NotNull
@@ -20,14 +20,14 @@ import com.intellij.openapi.util.Key
import org.jetbrains.kotlin.psi.JetFile
import org.jetbrains.kotlin.psi.JetCodeFragment
public val SKIP_VISIBILITY_CHECK: Key<Boolean> = Key.create<Boolean>("SKIP_VISIBILITY_CHECK")
public val SUPPRESS_DIAGNOSTICS_IN_DEBUG_MODE: Key<Boolean> = Key.create<Boolean>("SUPPRESS_DIAGNOSTICS_IN_DEBUG_MODE")
public var JetFile.skipVisibilityCheck: Boolean
public var JetFile.suppressDiagnosticsInDebugMode: Boolean
get() = when (this) {
is JetCodeFragment -> true
is JetFile -> getUserData(SKIP_VISIBILITY_CHECK) ?: false
is JetFile -> getUserData(SUPPRESS_DIAGNOSTICS_IN_DEBUG_MODE) ?: false
else -> false
}
set(skip: Boolean) {
putUserData(SKIP_VISIBILITY_CHECK, skip)
}
putUserData(SUPPRESS_DIAGNOSTICS_IN_DEBUG_MODE, skip)
}