package parser

import "github.com/evanw/esbuild/internal/parser"

Index

Functions

func ModuleExportsAST

func ModuleExportsAST(log logging.Log, source logging.Source, options config.Options, expr ast.Expr) ast.AST

func Parse

func Parse(log logging.Log, source logging.Source, options config.Options) (result ast.AST, ok bool)

func ParseJSON

func ParseJSON(log logging.Log, source logging.Source, options ParseJSONOptions) (result ast.Expr, ok bool)

Types

type ParseJSONOptions

type ParseJSONOptions struct {
	AllowComments       bool
	AllowTrailingCommas bool
}

Source Files

parser.go parser_json.go parser_lower.go parser_ts.go

Version
v0.5.21
Published
Jul 5, 2020
Platform
windows/amd64
Imports
11 packages
Last checked
8 minutes ago

Tools for package owners.