Repository navigation
Conversation
KoTypeDeclaration no longer extends KoDeclarationCastProvider (use sourceDeclaration), and KoSourceAndAliasTypeProvider, KoIsGenericTypeProvider, KoValModifierProvider, KoVarModifierProvider plus deprecated *ExternalType* and *ParameterType* members are removed.
📦 Konsist snapshot published
repositories {
maven("https://central.sonatype.com/repository/maven-snapshots/")
}
dependencies {
testImplementation("com.lemonappdev:konsist:1.0.0-alpha.1-pr2020-20261013.083420-2")
}Snapshots are removed from the Central snapshots repository after 90 days. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes every API marked
Will be removed in version 0.19.0, since 0.19.0 ships as 1.0.0. Breaking:KoTypeDeclarationno longer extendsKoDeclarationCastProvider, so cast/check calls now go throughsourceDeclaration.Removed
KoDeclarationCastProvidermembers onKoTypeDeclaration(isClass,asClassDeclaration(),hasClassDeclaration(), …) and theirList<KoTypeDeclaration>extensionsKoSourceAndAliasTypeProvider,KoIsGenericTypeProvider,KoValModifierProvider,KoVarModifierProvider(+ list extensions)isExternalType,asExternalTypeDeclaration(),hasExternalTypeDeclaration(Of)(),with/withoutExternalTypeDeclaration(Of)(),externalTypeDeclarationsand other list properties (classDeclarations, …) replaced by functionsparameterTypes,numParameterTypes,countParameterTypes(),hasParameterType(),hasAllParameterTypes()(+ list extensions)Migration
type.isClasstype.sourceDeclaration?.isClass == truetype.asClassDeclaration()type.sourceDeclaration?.asClassDeclaration()types.classDeclarations()types.sourceDeclarations().classDeclarations()type.isAliastype.sourceDeclaration?.isImportAlias == truetype.isGenericType/withGenericType()type.isGeneric/withGeneric()property.hasValModifier/withValModifier()property.isVal/withVal()declaration.isExternalTypedeclaration.isExternalfunctionType.parameterTypes/hasParameterType {}functionType.parameters/hasParameter {}sourceTypenow detects import aliases viasourceDeclaration, so its behaviour is unchanged. Tests covering only removed APIs were deleted (equivalent tests for the replacement APIs already exist); remaining tests migrated.