package parser

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

Index

Functions

func LazyExportAST

func LazyExportAST(log logging.Log, source logging.Source, options config.Options, expr ast.Expr, apiCall string) 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)

func ParseSourceMap

func ParseSourceMap(log logging.Log, source logging.Source) *sourcemap.SourceMap

Specification: https://sourcemaps.info/spec.html

Types

type ParseJSONOptions

type ParseJSONOptions struct {
	AllowComments       bool
	AllowTrailingCommas bool
}

Source Files

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

Version
v0.6.13
Published
Jul 31, 2020
Platform
windows/amd64
Imports
13 packages
Last checked
3 hours ago

Tools for package owners.