package parser

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

Index

Functions

func LazyExportAST

func LazyExportAST(log logger.Log, source logger.Source, options config.Options, expr ast.Expr, apiCall string) ast.AST

func Parse

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

func ParseJSON

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

func ParseSourceMap

func ParseSourceMap(log logger.Log, source logger.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.7.0
Published
Sep 12, 2020
Platform
windows/amd64
Imports
14 packages
Last checked
3 hours ago

Tools for package owners.