package
0.3.2
Repository: https://github.com/serulian/compiler.git
Documentation: pkg.go.dev

# Functions

NewBasicConfig returns PackageLoader Config for a root source file and source handlers.
NewPackageLoader creates and returns a new package loader for the given config.
PackageInfoForTesting returns a PackageInfo for testing.

# Constants

CurrentFilePosition indicates a position in the current file contents.
ImportTypeAlias indicates that the import is a library alias.
ImportTypeLocal indicates the import is a local module or package.
ImportTypeVCS indicates the import is a VCS package.
SerulianPackageDirectory is the directory under the root directory holding cached packages.
SerulianTestSuffix is the suffix for all testing modules.
TrackedFilePosition indicates a position in the tracked file contents.

# Structs

Config defines configuration for a PackageLoader.
DirectoryEntry represents a single entry under a directory.
Library contains a reference to an external library to load, in addition to those referenced by the root source file.
LoadedPackageMap defines an immutable view of the loaded packages.
LoadResult contains the result of attempting to load all packages and source files for this project.
No description provided by the author
ModuleOrPackage defines a reference to a module or package.
PackageImport defines the import of a package as exported by a SourceHandler.
PackageInfo holds information about a loaded package.
PackageLoader helps to fully and recursively load a Serulian package and its dependencies from a directory or set of directories.
SourceTracker is a helper struct for tracking the contents and versioning of all source files encountered by the package loader.

# Interfaces

PathLoader defines the interface for loading source files (modules) and directories (packages) in the package loader.
SourceHandler defines an interface for handling source files of a particular kind.
SourceHandlerParser defines a handle for parsing zero or more source files into the underlying graph.

# Type aliases

Entrypoint defines an entrypoint for the package loader.
ErrorReporter is a callback for reporting any errors during verification.
ImportHandler is a function called for registering imports encountered.
PackageImportType identifies the types of imports.
PositionType defines the type of positions given to GetPositionOffsetFromTracked.
WarningReporter is a callback for reporting any warnings during verification.