class NoirMobileLinker::ClassIndex

Overview

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.

Defined in:

mobile/linker.cr

Constant Summary

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

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def resolve(simple : String, package : String) : NamedTuple(path: String, lang: Symbol) | Nil #

[View source]