FunctionDeclarationContext

data class FunctionDeclarationContext(val declaration: FunctionDeclaration, val packageName: String, val className: String?, val modulePath: String, val filePath: String)

Context wrapper for verifying function declarations.

Provides both the target declaration and architectural metadata to easily query scope.

Constructors

Link copied to clipboard
constructor(declaration: FunctionDeclaration, packageName: String, className: String?, modulePath: String, filePath: String)

Properties

Link copied to clipboard

Delegates annotations property to the underlying FunctionDeclaration.

Link copied to clipboard

The name of the surrounding class if this function is a member/nested function, or null if it's top-level.

Link copied to clipboard

The underlying FunctionDeclaration AST model representing the function.

Link copied to clipboard

The project relative path to the source file defining this function.

Link copied to clipboard

Delegates isExtension property to the underlying FunctionDeclaration.

Link copied to clipboard

Delegates kdocText property to the underlying FunctionDeclaration.

Link copied to clipboard

Delegates modifiers property to the underlying FunctionDeclaration.

Link copied to clipboard

The module subdirectory/path containing this function.

Link copied to clipboard

Delegates name property to the underlying FunctionDeclaration.

Link copied to clipboard

The fully-qualified name of the package containing this function.

Link copied to clipboard

Delegates parameters property to the underlying FunctionDeclaration.

Link copied to clipboard

Delegates returnType property to the underlying FunctionDeclaration.

Link copied to clipboard

Delegates visibility property to the underlying FunctionDeclaration.

Functions

Link copied to clipboard

Helper extension to check if a function has all of the specified annotations.

Link copied to clipboard

Helper extension to check if a function has the specified annotation.

Link copied to clipboard

Helper extension to check if a function has any of the specified annotations.