DeclarationDescriptor

interface DeclarationDescriptor : Named, Annotated

Functions

Link copied to clipboard
abstract fun annotations(): Annotations
Link copied to clipboard
abstract fun element(): Element?
Link copied to clipboard
abstract fun impl(): Any

Properties

Link copied to clipboard
abstract val containingDeclaration: DeclarationDescriptor?
Link copied to clipboard
abstract val containingPackage: FqName?
Link copied to clipboard
abstract val fqNameSafe: FqName
Link copied to clipboard
open val hasDoNotLookAtArgumentsAnnotation: Boolean
Link copied to clipboard
open val hasPackageWithLawsAnnotation: Boolean
Link copied to clipboard
open val hasPreOrPostAnnotation: Boolean
Link copied to clipboard
abstract val name: Name
Link copied to clipboard
open val packageWithLawsAnnotation: AnnotationDescriptor?

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
fun DeclarationDescriptor.gather(predicate: (DeclarationDescriptor) -> Boolean): List<DeclarationDescriptor>

Gather all descriptors which satisfy a predicate, going inside every element recursively.

Link copied to clipboard
fun DeclarationDescriptor.isALaw(): Boolean

returns true if we have declared something with a @Law or lives inside an object that inherits Laws

Link copied to clipboard

check if a descriptor is compatible with other, in the sense that they refer to a function with the same signature

Link copied to clipboard
fun DeclarationDescriptor.isField(): Boolean

should we treat a node as a field and create 'field(name, x)'?

Link copied to clipboard

check if a descriptor is compatible with other, in the sense that the arguments are (possibly) supertypes

Link copied to clipboard

Obtain the descriptors which have been overridden by a declaration, if they exist

Link copied to clipboard

Removes the indirection from type aliases in a descriptor.