Class ScopeAtLineResolver

java.lang.Object
org.ek9lang.mcp.oracle.ScopeAtLineResolver

final class ScopeAtLineResolver extends Object
Finds the deepest scope containing a given line number by walking the parse tree. Used when no specific symbol is found at a position but scope context is still needed.
  • Constructor Details

    • ScopeAtLineResolver

      ScopeAtLineResolver(ParsedModule parsedModule)
  • Method Details

    • resolve

      Optional<IScope> resolve(org.antlr.v4.runtime.tree.ParseTree root, int line)
      Find the deepest scope containing the given line number.