class SchemaLoader : Closeable, Loader, ProfileLoader
Load proto files and their transitive dependencies and parse them. Keep track of which files were loaded from where so that we can use that information later when deciding what to generate.
SchemaLoader(fileSystem: FileSystem) |
var permitPackageCycles: Boolean
Strict by default. Note that golang cannot build protos with package cycles. |
|
var sourcePathFiles: List<ProtoFile>
Subset of the schema that was loaded from the source path. |
fun close(): Unit |
|
fun initRoots(sourcePath: List<Location>, protoPath: List<Location> = listOf()): Unit
Initialize the WireRun.sourcePath and WireRun.protoPath from which files are loaded. |
|
fun load(path: String): ProtoFile |
|
fun loadProfile(name: String, schema: Schema): Profile |
|
fun loadSchema(): Schema |
|
fun withErrors(errors: ErrorCollector): SchemaLoader |