Object ModuleMapSource
-
- All Implemented Interfaces:
public class ModuleMapSourceParser for the on-disk
ModuleMap.ktstatic snapshot.validate repo-consistencycompares the static ModuleMap snapshot against the live pom graph. The loaded ModuleMap class can be STALE (it comes from the running backend's build, which may predate ModuleMap.kt edits — e.g. right afterscaffoldToDirsynced a new module). Parsing the source file instead anchors the comparison to what will actually be compiled next.Pure string parsing of the generated file format — no Kotlin compiler, no I/O. Returns null when the file does not match the expected shape (callers then fall back to the loaded class and warn).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classModuleMapSource.ParsedThe parsed static snapshot.
-
Field Summary
Fields Modifier and Type Field Description public final static ModuleMapSourceINSTANCE
-
Method Summary
Modifier and Type Method Description final ModuleMapSource.Parsedparse(String source)Parse source (the text of ModuleMap. -
-
Method Detail
-
parse
final ModuleMapSource.Parsed parse(String source)
- Returns:
the parsed snapshot, or null when the expected structure (MODULES block + DEPENDENTS block ending with
\n )) is absent
-
-
-
-