documentedLibrariesForRuntime function

List<Library> documentedLibrariesForRuntime(
  1. LuaRuntime runtime
)

Initializes runtime libraries and returns them in registry order.

Standard namespaced libraries are installed lazily at runtime. Documentation metadata is collected during library initialization, so doc generators and editor tooling should use this helper when they want the complete registered library surface.

Implementation

List<Library> documentedLibrariesForRuntime(LuaRuntime runtime) {
  runtime.libraryRegistry.initializeAll();
  return runtime.libraryRegistry.libraries;
}