Class LocationResolver
java.lang.Object
org.ek9lang.mcp.oracle.LocationResolver
Resolves a source location (file, line, column) to a full LocationContext.
Generalises the LSP hover pipeline to populate all context levels in one pass.
All methods are defensive — null inputs or unresolved symbols produce
empty/degraded results, never exceptions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolve(CompilableProgram program, Workspace workspace, String file, int line, int column) Resolve a source location to full semantic context.
-
Constructor Details
-
LocationResolver
public LocationResolver()
-
-
Method Details
-
resolve
public LocationContext resolve(CompilableProgram program, Workspace workspace, String file, int line, int column) Resolve a source location to full semantic context. Must be called within SharedThreadContext.accept() — caller holds the lock.- Returns:
- a LocationContext; never null. May be empty if the file is not found.
-