package js_parser

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

Index

Functions

func LazyExportAST

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

func Parse

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

func ParseGlobalName

func ParseGlobalName(log logger.Log, source logger.Source) (result []string, ok bool)

func ParseJSON

func ParseJSON(log logger.Log, source logger.Source, options ParseJSONOptions) (result js_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

global_name_parser.go js_parser.go js_parser_lower.go json_parser.go sourcemap_parser.go ts_parser.go

Version
v0.8.2
Published
Nov 1, 2020
Platform
windows/amd64
Imports
15 packages
Last checked
43 seconds ago

Tools for package owners.