FunctionDeclarationContext
Context wrapper for verifying function declarations.
Provides both the target declaration and architectural metadata to easily query scope.
Constructors
Properties
Delegates annotations property to the underlying FunctionDeclaration.
Filter or assertion criteria for declaration.
Delegates isExtension property to the underlying FunctionDeclaration.
Delegates kdocText property to the underlying FunctionDeclaration.
Delegates modifiers property to the underlying FunctionDeclaration.
Filter or assertion criteria for module path.
Delegates name property to the underlying FunctionDeclaration.
Filter or assertion criteria for package name.
Delegates parameters property to the underlying FunctionDeclaration.
The fully-qualified name of the function, combining package, enclosing class (if any), and simple name (e.g. com.acme.UserService.getUser), used to identify it unambiguously in violation messages.
Delegates returnType property to the underlying FunctionDeclaration.
Filter or assertion criteria for source set.
Filter or assertion criteria for usages.
Delegates visibility property to the underlying FunctionDeclaration.
Functions
Helper extension to check if a function has all of the specified annotations.
Helper extension to check if a function has the specified annotation.
Helper extension to check if a function has any of the specified annotations.