java.lang.Object
technology.sola.script.resolver.Resolver

@NullMarked public class Resolver extends Object
Resolver handles updating ScopeTable information for a ScriptRuntime for a list of Stmts.
  • Constructor Details

    • Resolver

      public Resolver(ScriptRuntime scriptRuntime)
      Creates an instance for desired ScriptRuntime.
      Parameters:
      scriptRuntime - the runtime this resolver is associated with
  • Method Details

    • resolve

      public List<ScriptError> resolve(List<Stmt> statements)
      Processes variable scope resolutions for a list of Stmts in the attached ScriptRuntime.
      Parameters:
      statements - the statements to resolve variables for
      Returns:
      any ScriptErrors that happened while resolving