Frontier.Classifier
(Frontier v0.2.1)
Copy Markdown
Classifies modules by priority: ignored, global, reclassified, context root, schema, exported, internal, or unowned.
Summary
Functions
Classifies a module according to Frontier's priority rules
Returns the owning context for a module, or nil if the module isn't owned by any context.
Types
Functions
@spec classify(module()) :: classification()
Classifies a module according to Frontier's priority rules:
- Ignored (per-module or root ignore list)
- Global (in root globals list, or submodule of a global)
- Reclassified (has belongs_to:)
- Context root (has use Frontier)
- Schema (defines schema/1)
- Exported (listed in context's exports:)
- Internal (under a context namespace)
- Unowned (not under any context)
Returns the owning context for a module, or nil if the module isn't owned by any context.