org.jetbrains.kotlin.resolve.constants
Class CompileTimeConstantChecker
java.lang.Object
org.jetbrains.kotlin.resolve.constants.CompileTimeConstantChecker
public class CompileTimeConstantChecker
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompileTimeConstantChecker
public CompileTimeConstantChecker(@NotNull
ResolutionContext<?> context,
@NotNull
KotlinBuiltIns builtIns,
boolean checkOnlyErrorsThatDependOnExpectedType)
checkConstantExpressionType
public boolean checkConstantExpressionType(@Nullable
compileTimeConstant,
@NotNull
KtConstantExpression expression,
@NotNull
KotlinType expectedType)
escapedStringToCharacter
@NotNull
public static CompileTimeConstantChecker.CharacterWithDiagnostic escapedStringToCharacter(@NotNull
java.lang.String text,
@NotNull
KtElement expression)
parseChar
@Nullable
public static java.lang.Character parseChar(@NotNull
KtConstantExpression expression)