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 (d KotlinStructuresDetector) Detect(ctx *detector.Context) *detector.Result
func (KotlinStructuresDetector) Name ¶
func (KotlinStructuresDetector) Name() string
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 (d KtorRouteDetector) Detect(ctx *detector.Context) *detector.Result
func (KtorRouteDetector) Name ¶
func (KtorRouteDetector) Name() string
func (KtorRouteDetector) SupportedLanguages ¶
func (KtorRouteDetector) SupportedLanguages() []string
Click to show internal directories.
Click to hide internal directories.