package parser
import "github.com/evanw/esbuild/internal/parser"
Index ¶
- Constants
- func ModuleExportsAST(log logging.Log, source logging.Source, options ParseOptions, expr ast.Expr) ast.AST
- func Parse(log logging.Log, source logging.Source, options ParseOptions) (result ast.AST, ok bool)
- func ParseJSON(log logging.Log, source logging.Source, options ParseJSONOptions) (result ast.Expr, ok bool)
- type DefineFunc
- type FindSymbol
- type JSXOptions
- type LanguageTarget
- type ParseJSONOptions
- type ParseOptions
- type TypeScriptOptions
Constants ¶
const ( // These are arranged such that ESNext is the default zero value and such // that earlier releases are less than later releases ES2015 = -6 ES2016 = -5 ES2017 = -4 ES2018 = -3 ES2019 = -2 ES2020 = -1 ESNext = 0 )
Functions ¶
func ModuleExportsAST ¶
func ModuleExportsAST(log logging.Log, source logging.Source, options ParseOptions, expr ast.Expr) ast.AST
func Parse ¶
func ParseJSON ¶
func ParseJSON(log logging.Log, source logging.Source, options ParseJSONOptions) (result ast.Expr, ok bool)
Types ¶
type DefineFunc ¶
type DefineFunc func(FindSymbol) ast.E
type FindSymbol ¶
type JSXOptions ¶
type LanguageTarget ¶
type LanguageTarget int8
type ParseJSONOptions ¶
type ParseOptions ¶
type ParseOptions struct { // true: imports are scanned and bundled along with the file // false: imports are left alone and the file is passed through as-is IsBundling bool Defines map[string]DefineFunc MangleSyntax bool OmitWarnings bool TS TypeScriptOptions JSX JSXOptions Target LanguageTarget }
type TypeScriptOptions ¶
type TypeScriptOptions struct { Parse bool }
Source Files ¶
- Version
- v0.2.12
- Published
- May 13, 2020
- Platform
- windows/amd64
- Imports
- 10 packages
- Last checked
- 2 minutes ago –
Tools for package owners.