class

NoirMobileLinker::ClassIndex

Inherits Reference < Object

Lazily indexes every project .kt/.java file by the simple names it declares, so a manifest component name resolves to a file in O(1) after one content scan. Disambiguates by package when several files share a class name.

Constants

DECL_RE = /\b(?:class|object|interface)\s+([A-Z]\w*)/
PACKAGE_RE = /^\s*package\s+([\w.]+)/

Constructors

Instance methods

resolve(simple : String, package : String, near : String | Nil = nil) : NamedTuple(path: String, lang: Symbol) | Nil

Among files declaring simple (in package when any match), the one sharing the longest directory prefix with near (the manifest).

Source

Nested types