compiler

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2021 License: Apache-2.0 Imports: 11 Imported by: 5

Documentation

Index

Constants

View Source
const Ellipsis = "..."

Variables

This section is empty.

Functions

func Compile

func Compile(schemas []InputSchema, objectTypePrefix *string) ([]*v0.NamespaceDefinition, error)

Compile compilers the input schema(s) into a set of namespace definition protos.

Types

type ErrorWithContext

type ErrorWithContext struct {
	SourceRange input.SourceRange
	Source      input.InputSource
	// contains filtered or unexported fields
}

ErrorWithContext defines an error which contains contextual information.

type InputSchema

type InputSchema struct {
	// Source is the source of the schema being compiled.
	Source input.InputSource

	// Schema is the contents being compiled.
	SchemaString string
}

InputSchema defines the input for a Compile.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL