Package arrow.meta.phases.analysis.diagnostic

Functions

onPublishedApi
Link copied to clipboard
fun KtDeclaration.onPublishedApi(ctx: BindingContext): Pair<KtAnnotationEntry, TextRange>?
position
Link copied to clipboard
fun <A : PsiElement> position(mark: (A) -> List<TextRange> = { markElement(it) }, isValid: (A) -> Boolean = { !hasSyntaxErrors(it) }, markDiagnostic: (ParametrizedDiagnostic<out A>) -> List<TextRange> = { mark(it.psiElement) }): PositioningStrategy<A>
publishedApiAnnotation
Link copied to clipboard
fun KtDeclaration.publishedApiAnnotation(): KtAnnotationEntry?

matching on the shortName is valid, as the diagnostic is only applied, if the FqName correlates. Which is checked prior to the Diagnostic being applied.

Properties

onIdentifyingElement
Link copied to clipboard
val onIdentifyingElement: PositioningStrategy<KtObjectDeclaration>
onNavigationElement
Link copied to clipboard
val onNavigationElement: PositioningStrategy<KtDeclaration>
onPublishedInternalOrphan
Link copied to clipboard
val onPublishedInternalOrphan: PositioningStrategy<KtDeclaration>

Each element that is a witness of this strategy has an attribute that allows internal orphans to be published publicly. e.g.: PublishedApi annotation