parser

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: MPL-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package parser parses Encore applications into an Encore Syntax Tree (EST).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseMeta

func ParseMeta(version, appRoot string, app *est.Application) (*meta.Data, map[*est.Package]TraceNodes, error)

ParseMeta parses app metadata.

Types

type Config

type Config struct {
	AppRoot    string
	Version    string
	ModulePath string
	WorkingDir string
	ParseTests bool
}

Config represents the configuration options for parsing.

type Result

type Result struct {
	FileSet *token.FileSet
	App     *est.Application
	Meta    *meta.Data
	Nodes   map[*est.Package]TraceNodes
}

func Parse

func Parse(cfg *Config) (*Result, error)

type TraceNodes

type TraceNodes map[ast.Node]*meta.TraceNode

Directories

Path Synopsis
Package est provides the Encore Syntax Tree (EST).
Package est provides the Encore Syntax Tree (EST).
internal
Package paths parses API paths.
Package paths parses API paths.

Jump to

Keyboard shortcuts

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