parser

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MarkerImplements        = att.Mark("github.com/jpicht/polyjson/markers", "Implements")
	MarkerCommon            = att.Mark("github.com/jpicht/polyjson/markers", "Common")
	MarkerInterface         = att.Mark("github.com/jpicht/polyjson/markers", "Interface")
	MarkerTypeID            = att.Mark("github.com/jpicht/polyjson/markers", "TypeID")
	AdditionalFields        = att.Mark("github.com/jpicht/polyjson/markers", "AdditionalFields")
	JWriterWritable         = att.Mark("github.com/launchdarkly/go-jsonstream/v3", "Writable")
	EasyJSONUnmarshaler     = att.Mark("github.com/mailru/easyjson", "Unmarshaler")
	EncodingJSONUnmarshaler = att.Mark("encoding/json", "Unmarshaler")
	EncodingJSONMarshaler   = att.Mark("encoding/json", "Marshaler")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Interfaces  []att.Marker
	Markers     []att.Marker
	TypeMarkers []att.Marker
	Packages    packages.Config
	Verbose     bool
}

func (*Config) Parse

func (config *Config) Parse(directory string) (*Result, error)

type Result

type Result struct {
	Config *Config
	StdLib struct {
		FileSet  *token.FileSet
		Packages []*packages.Package
	}
	Additional map[string][]byte
	Directory  string
	Packages   []*att.Package
	Helpers    struct {
		InterfaceTests  map[att.Marker]func(types.Type) bool
		TypeMarkerTests map[att.Marker]func(types.Type) bool
		MarkerTests     map[att.Marker]func(types.Type) bool
	}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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