ScopeComparator

Comparator for sorting package scopes by depth (number of dots) and length. Used to prioritize more specific scopes over general ones.

Functions

Link copied to clipboard
open override fun compare(o1: String, o2: String): Int

Compares two scope strings for ordering. First compares by package depth (more dots = higher priority), then by string length, then lexicographically.