ClasspathLoaders

tastyquery.nodejs.ClasspathLoaders

Classpath loaders using the Node.js API.

This API is specific to Scala.js when used with Node.js. It is not available on the JVM nor on other Scala.js environments.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def read(classpath: List[String])(using ExecutionContext): Future[Classpath]

Reads the contents of a classpath.

Reads the contents of a classpath.

Entries can be directories or jar files. Non-existing entries are ignored.

This method will asynchronously read the contents of all .class and .tasty files on the classpath. It returns a Future that will be completed when all has been read into memory.

The resulting Classpaths.Classpath can be given to Contexts.Context.initialize to create a Contexts.Context. The latter gives semantic access to all the definitions on the classpath.

The entries of the resulting Classpaths.Classpath can be considered thread-safe, since the JavaScript environment is always single-threaded.

Attributes

Note

the resulting ClasspathEntry entries of the returned Classpaths.Classpath correspond to the elements of classpath.