parser

package
v1.57.5 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MPL-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resources

func Resources[R resource.Resource](res *Result) []R

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser(c *parsectx.Context) *Parser

func (*Parser) MainModule

func (p *Parser) MainModule() *pkginfo.Module

func (*Parser) Parse

func (p *Parser) Parse() *Result

Parse parses the given application for uses of the Encore API Framework and the Encore infrastructure SDK.

func (*Parser) RuntimeModule added in v1.16.0

func (p *Parser) RuntimeModule() *pkginfo.Module

type Result

type Result struct {
	// contains filtered or unexported fields
}

func (*Result) AllBinds

func (d *Result) AllBinds() []resource.Bind

func (*Result) AllUsageExprs

func (d *Result) AllUsageExprs() []usage.Expr

func (*Result) AllUsages

func (d *Result) AllUsages() []usage.Usage

func (*Result) AppPackages

func (d *Result) AppPackages() []*pkginfo.Package

func (*Result) BindForQN

func (*Result) Binds

func (d *Result) Binds(res resource.Resource) []resource.Bind

func (*Result) MainModule

func (d *Result) MainModule() *pkginfo.Module

func (*Result) PackageAt

func (d *Result) PackageAt(path paths.Pkg) option.Option[*