kotlin

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KotlinStructuresDetector

type KotlinStructuresDetector struct{}

KotlinStructuresDetector detects Kotlin classes/interfaces/objects/funs + imports. Mirrors Java KotlinStructuresDetector (regex tier).

func NewKotlinStructuresDetector

func NewKotlinStructuresDetector() *KotlinStructuresDetector

func (KotlinStructuresDetector) DefaultConfidence

func (KotlinStructuresDetector) DefaultConfidence() model.Confidence

func (KotlinStructuresDetector) Detect

func (KotlinStructuresDetector) Name

func (KotlinStructuresDetector) SupportedLanguages

func (KotlinStructuresDetector) SupportedLanguages() []string

type KtorRouteDetector

type KtorRouteDetector struct{}

KtorRouteDetector mirrors Java KtorRouteDetector regex tier. Detects `routing { get("/p") { } }` blocks, `route("/api") {` prefixes, `authenticate("...") {` guards, and `install(...)` features.

REQUIRES a Ktor-specific discriminator import (`io.ktor`) to avoid false positives on plain Kotlin code that uses similar DSL idioms (e.g. custom routing DSLs, test fixtures, or coroutine builders named `routing`/`get`).

func NewKtorRouteDetector

func NewKtorRouteDetector() *KtorRouteDetector

func (KtorRouteDetector) DefaultConfidence

func (KtorRouteDetector) DefaultConfidence() model.Confidence

func (KtorRouteDetector) Detect

func (KtorRouteDetector) Name

func (KtorRouteDetector) Name() string

func (KtorRouteDetector) SupportedLanguages

func (KtorRouteDetector) SupportedLanguages() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL