Class ModuleOf

java.lang.Object
org.ek9lang.compiler.support.ModuleOf

public final class ModuleOf extends Object
THE module a type symbol belongs to, for the module-level quality trackers: the module the symbol was parsed in (phase 1 already resolved and recorded it, so reading it back is immune to the name-shape assumptions a name split makes), else - only for a symbol with no parsed module, such as a built-in reached through a synthesised scope, where there is nothing else to read - the module part of its fully qualified name.

Module cohesion and module coupling are given the same leaves and must attribute them to the same module, so both ask here (F15, 2026-10-20: one read the parsed module and the other split the name).

  • Method Details

    • of

      public static String of(ISymbol type)
      The name of the module the type belongs to; empty text when it cannot be told.