github.com/evanw/esbuild/internal/js_parser.parser.options (field)
230 uses
github.com/evanw/esbuild/internal/js_parser (current package)
js_parser.go#L35: options Options
js_parser.go#L493: if p.options.suppressWarningsAboutWeirdCode {
js_parser.go#L1004: if p.options.mode == config.ModeBundle && p.currentScope.Parent == nil {
js_parser.go#L1011: if p.options.mode == config.ModeBundle && kind == js_ast.LocalConst && p.options.mangleSyntax {
js_parser.go#L1108: if p.options.mode == config.ModeBundle && p.currentScope.Parent == nil &&
js_parser.go#L1194: if p.options.ts.Parse {
js_parser.go#L1236: if p.options.ts.Parse && existing == js_ast.SymbolImport {
js_parser.go#L1504: if p.options.ts.Parse {
js_parser.go#L1752: if p.options.ts.Parse && p.lexer.Token == js_lexer.TColon && wasIdentifier && opts.isClass {
js_parser.go#L1830: if opts.isClass && p.options.ts.Parse && raw == name {
js_parser.go#L1868: if p.options.ts.Parse {
js_parser.go#L1894: if p.options.ts.Parse && p.lexer.Token == js_lexer.TColon {
js_parser.go#L1972: allowMissingBodyForTypeScript: p.options.ts.Parse && opts.isClass,
js_parser.go#L2036: if p.options.unsupportedJSFeatures.Has(declare.Feature()) {
js_parser.go#L2230: if p.options.ts.Parse && p.trySkipTypeScriptTypeParametersThenOpenParenWithBacktracking() {
js_parser.go#L2269: if p.options.ts.Parse {
js_parser.go#L2335: if p.options.ts.Parse && p.lexer.Token == js_lexer.TColon {
js_parser.go#L2342: if p.options.ts.Parse && p.lexer.Token == js_lexer.TEquals && p.lexer.Loc() != p.forbidSuffixAfterAsLoc {
js_parser.go#L2372: if p.lexer.Token == js_lexer.TEqualsGreaterThan || opts.forceArrowFn || (p.options.ts.Parse && p.lexer.Token == js_lexer.TColon) {
js_parser.go#L2757: if p.options.unsupportedJSFeatures.Has(compat.TemplateLiteral) {
js_parser.go#L2907: if p.options.ts.Parse {
js_parser.go#L2934: if p.options.ts.Parse {
js_parser.go#L3122: if p.options.ts.Parse && p.options.jsx.Parse {
js_parser.go#L3148: if p.options.jsx.Parse {
js_parser.go#L3161: if p.options.ts.Parse {
js_parser.go#L3248: if p.options.unsupportedJSFeatures.Has(compat.ImportMeta) {
js_parser.go#L3292: hadPureCommentBefore := p.lexer.HasPureCommentBefore && !p.options.ignoreDCEAnnotations
js_parser.go#L3416: if !p.options.ts.Parse {
js_parser.go#L3537: if p.options.ts.Parse && left.Loc == p.latestArrowArgLoc && (p.lexer.Token == js_lexer.TColon ||
js_parser.go#L3563: if !p.options.ts.Parse {
js_parser.go#L3709: if p.options.ts.Parse && p.trySkipTypeScriptTypeArgumentsWithBacktracking() {
js_parser.go#L3909: if !p.options.suppressWarningsAboutWeirdCode {
js_parser.go#L3926: if !p.options.suppressWarningsAboutWeirdCode {
js_parser.go#L3938: if p.options.ts.Parse && level < js_ast.LCompare && !p.lexer.HasNewlineBefore && p.lexer.IsContextualKeyword("as") {
js_parser.go#L4081: if p.options.ts.Parse {
js_parser.go#L4171: if p.lexer.Token == js_lexer.TDotDotDot && p.options.ts.Parse {
js_parser.go#L4261: if p.options.ts.Parse {
js_parser.go#L4614: if p.options.ts.Parse && p.lexer.Token == js_lexer.TThis {
js_parser.go#L4643: if p.options.ts.Parse {
js_parser.go#L4725: if p.options.ts.Parse && p.lexer.Token == js_lexer.TColon {
js_parser.go#L4767: if p.options.ts.Parse {
js_parser.go#L4811: if p.options.ts.Parse {
js_parser.go#L4816: if p.options.ts.Parse && p.lexer.IsContextualKeyword("implements") {
js_parser.go#L4948: if p.options.ts.Parse {
js_parser.go#L4968: allowMissingBodyForTypeScript: p.options.ts.Parse,
js_parser.go#L5071: if p.options.ts.Parse && (opts.isModuleScope || opts.isNamespaceScope) {
js_parser.go#L5080: if !p.options.ts.Parse {
js_parser.go#L5114: if p.options.ts.Parse {
js_parser.go#L5237: if p.options.ts.Parse && isIdentifier && name == "abstract" {
js_parser.go#L5326: if p.options.ts.Parse {
js_parser.go#L5345: if !p.options.ts.Parse {
js_parser.go#L5352: if p.options.ts.Parse {
js_parser.go#L5414: if p.options.ts.Parse && p.lexer.Token == js_lexer.TEnum {
js_parser.go#L5556: if p.options.unsupportedJSFeatures.Has(compat.OptionalCatchBinding) {
js_parser.go#L5567: if p.options.ts.Parse && p.lexer.Token == js_lexer.TColon {
js_parser.go#L5803: if p.options.ts.Parse {
js_parser.go#L6008: if p.options.ts.Parse {
js_parser.go#L6201: if p.options.ts.Parse {
js_parser.go#L6244: if !p.options.suppressWarningsAboutWeirdCode {
js_parser.go#L6600: if p.options.unsupportedJSFeatures.Has(compat.Let) {
js_parser.go#L6626: if !p.options.mangleSyntax {
js_parser.go#L7879: if !p.options.unsupportedJSFeatures.Has(compat.NullishCoalescing) {
js_parser.go#L7923: if p.options.keepNames && wasAnonymousNamedExpr {
js_parser.go#L7989: if !p.options.ts.Parse {
js_parser.go#L8033: if p.options.unsupportedJSFeatures.Has(compat.ExportStarAs) {
js_parser.go#L8066: if p.options.ts.Parse {
js_parser.go#L8080: if p.options.keepNames {
js_parser.go#L8094: if p.options.keepNames && s2.Fn.Name != nil {
js_parser.go#L8187: if p.options.mangleSyntax && s.Kind == js_ast.LocalLet {
js_parser.go#L8238: if p.options.mangleSyntax {
js_parser.go#L8253: if p.options.mangleSyntax {
js_parser.go#L8274: if p.options.mangleSyntax {
js_parser.go#L8295: if p.options.mangleSyntax {
js_parser.go#L8314: if p.options.mangleSyntax {
js_parser.go#L8321: if p.options.mangleSyntax {
js_parser.go#L8351: if p.options.mangleSyntax {
js_parser.go#L8358: if p.options.mangleSyntax {
js_parser.go#L8371: if p.options.mangleSyntax {
js_parser.go#L8400: if p.options.mangleSyntax {
js_parser.go#L8519: if p.options.keepNames {
js_parser.go#L8611: if p.options.mangleSyntax && js_lexer.IsIdentifier(name) {
js_parser.go#L8654: if p.options.mangleSyntax {
js_parser.go#L8723: if p.options.mode != config.ModeBundle || p.currentScope == p.moduleScope {
js_parser.go#L8962: replaceThisInStaticFieldInit := p.options.unsupportedJSFeatures.Has(compat.ClassStaticField) ||
js_parser.go#L8963: (p.options.mode == config.ModeBundle && p.currentScope.Parent == nil)
js_parser.go#L9016: if p.options.mangleSyntax && property.IsComputed {
js_parser.go#L9038: ((!property.IsStatic && p.options.unsupportedJSFeatures.Has(compat.ClassField)) ||
js_parser.go#L9039: (property.IsStatic && p.options.unsupportedJSFeatures.Has(compat.ClassStaticField))) {
js_parser.go#L9203: if defines, ok := p.options.defines.DotDefines[parts[len(parts)-1]]; ok {
js_parser.go#L9253: if p.options.asciiOnly && p.options.unsupportedJSFeatures.Has(compat.UnicodeEscapes) &&
js_parser.go#L9277: if !p.options.suppressWarningsAboutWeirdCode {
js_parser.go#L9309: if p.options.suppressWarningsAboutWeirdCode {
js_parser.go#L9361: if p.options.mode == config.ModeBundle && p.options.platform == config.PlatformBrowser {
js_parser.go#L9391: if p.options.mode == config.ModeBundle {
js_parser.go#L9405: if p.options.mode == config.ModePassThrough {
js_parser.go#L9451: if p.options.ts.Parse && optionalChain == js_ast.OptionalChainNone {
js_parser.go#L9684: if p.options.mode != config.ModePassThrough && !p.fnOnlyDataVisit.isThisNested {
js_parser.go#L9862: if p.fnOrArrowDataVisit.isArrow && p.options.unsupportedJSFeatures.Has(compat.Arrow) && p.fnOnlyDataVisit.isThisNested {
js_parser.go#L9870: if defines, ok := p.options.defines.DotDefines["meta"]; ok {
js_parser.go#L9908: if p.options.mode == config.ModeBundle {
js_parser.go#L9917: if data, ok := p.options.defines.IdentifierDefines[name]; ok {
js_parser.go#L9932: if data.CallCanBeUnwrappedIfUnused && !p.options.ignoreDCEAnnotations {
js_parser.go#L9955: value := p.jsxStringsToMemberExpression(expr.Loc, p.options.jsx.Fragment)
js_parser.go#L9992: Target: p.jsxStringsToMemberExpression(expr.Loc, p.options.jsx.Factory),
js_parser.go#L9996: CanBeUnwrappedIfUnused: !p.options.ignoreDCEAnnotations,
js_parser.go#L10011: if p.options.mangleSyntax {
js_parser.go#L10079: if p.options.mangleSyntax {
js_parser.go#L10112: if p.options.mangleSyntax {
js_parser.go#L10133: if p.options.mangleSyntax {
js_parser.go#L10154: if p.options.mangleSyntax {
js_parser.go#L10175: if p.options.mangleSyntax {
js_parser.go#L10202: if p.options.mangleSyntax {
js_parser.go#L10210: if p.options.unsupportedJSFeatures.Has(compat.NullishCoalescing) {
js_parser.go#L10229: if p.options.mangleSyntax {
js_parser.go#L10259: if p.options.mangleSyntax {
js_parser.go#L10329: if p.options.unsupportedJSFeatures.Has(compat.ExponentOperator) {
js_parser.go#L10425: if p.options.unsupportedJSFeatures.Has(compat.ExponentOperator) {
js_parser.go#L10464: if p.options.unsupportedJSFeatures.Has(compat.LogicalAssignment) {
js_parser.go#L10469: if p.options.unsupportedJSFeatures.Has(compat.LogicalAssignment) {
js_parser.go#L10474: if p.options.unsupportedJSFeatures.Has(compat.LogicalAssignment) {
js_parser.go#L10480: if p.options.mangleSyntax && e.Op != js_ast.BinOpComma {
js_parser.go#L10495: if p.options.mangleSyntax {
js_parser.go#L10524: } else if !p.options.suppressWarningsAboutWeirdCode {
js_parser.go#L10537: if p.options.unsupportedJSFeatures.Has(kind.Feature()) && e.OptionalChain == js_ast.OptionalChainNone &&
js_parser.go#L10579: if p.options.mode == config.ModeBundle && (in.assignTarget != js_ast.AssignTargetNone || isDeleteTarget) {
js_parser.go#L10604: if p.options.mode == config.ModeBundle {
js_parser.go#L10631: if !p.options.suppressWarningsAboutWeirdCode && superPropLoc.Start != 0 {
js_parser.go#L10674: if p.options.mangleSyntax {
js_parser.go#L10682: if p.options.mangleSyntax {
js_parser.go#L10729: if p.options.mangleSyntax && e.Op != js_ast.UnOpDelete && e.Op != js_ast.UnOpTypeof {
js_parser.go#L10746: if defines, ok := p.options.defines.DotDefines[e.Name]; ok {
js_parser.go#L10758: if define.Data.CallCanBeUnwrappedIfUnused && !p.options.ignoreDCEAnnotations {
js_parser.go#L10772: if p.options.outputFormat == config.FormatCommonJS {
js_parser.go#L10827: if p.options.mangleSyntax {
js_parser.go#L10845: if p.options.mangleSyntax {
js_parser.go#L10868: if p.options.mangleSyntax {
js_parser.go#L10886: if p.options.mangleSyntax {
js_parser.go#L10895: if p.options.unsupportedJSFeatures.Has(compat.AsyncAwait) {
js_parser.go#L10939: if p.options.mangleSyntax && hasSpread && in.assignTarget == js_ast.AssignTargetNone {
js_parser.go#L10971: if p.options.mangleSyntax && property.IsComputed {
js_parser.go#L11006: if len(e.Properties) > 1 && !p.options.suppressWarningsAboutWeirdCode {
js_parser.go#L11049: if p.options.mangleSyntax && hasSpread {
js_parser.go#L11109: if p.options.mode == config.ModeBundle {
js_parser.go#L11144: if !p.options.outputFormat.KeepES6ImportExportSyntax() {
js_parser.go#L11151: if p.options.unsupportedJSFeatures.Has(compat.Arrow) {
js_parser.go#L11190: if len(e.Args) == 1 && p.options.mode != config.ModePassThrough {
js_parser.go#L11255: if p.options.mangleSyntax && hasSpread && in.assignTarget == js_ast.AssignTargetNone {
js_parser.go#L11270: if p.options.mode == config.ModeBundle && !p.hasESModuleSyntax {
js_parser.go#L11285: if p.options.mode == config.ModeBundle && p.es6ImportKeyword.Len > 0 && !p.options.suppressWarningsAboutWeirdCode {
js_parser.go#L11331: if p.options.mode != config.ModePassThrough && e.OptionalChain == js_ast.OptionalChainNone {
js_parser.go#L11338: if p.options.mode == config.ModeBundle {
js_parser.go#L11377: } else if p.options.outputFormat == config.FormatESModule && !omitWarnings {
js_parser.go#L11431: if p.options.mangleSyntax && len(e.Body.Stmts) == 1 {
js_parser.go#L11447: if p.options.unsupportedJSFeatures.Has(compat.Arrow) {
js_parser.go#L11462: if p.options.mangleSyntax && name != nil && p.symbols[name.Ref.InnerIndex].UseCountEstimate == 0 {
js_parser.go#L11467: if p.options.keepNames && name != nil {
js_parser.go#L11485: if p.options.outputFormat != config.FormatPreserve {
js_parser.go#L11489: if p.options.ts.Parse {
js_parser.go#L11550: isInsideUnsupportedArrow := p.fnOrArrowDataVisit.isArrow && p.options.unsupportedJSFeatures.Has(compat.Arrow)
js_parser.go#L11551: isInsideUnsupportedAsyncArrow := p.fnOnlyDataVisit.isInsideAsyncArrowFn && p.options.unsupportedJSFeatures.Has(compat.AsyncAwait)
js_parser.go#L11557: if p.options.mode == config.ModeBundle && (opts.assignTarget != js_ast.AssignTargetNone || opts.isDeleteTarget) {
js_parser.go#L11579: if p.options.ts.Parse {
js_parser.go#L11608: if p.options.platform == config.PlatformBrowser {
js_parser.go#L11766: keepUnusedImports := p.options.ts.Parse && p.options.preserveUnusedImportsTS &&
js_parser.go#L11767: p.options.mode != config.ModeBundle && !p.options.minifyIdentifiers
js_parser.go#L11772: if (p.options.mangleSyntax || p.options.ts.Parse) && !keepUnusedImports {
js_parser.go#L11782: if p.options.ts.Parse && p.tsUseCounts[s.DefaultName.Ref.InnerIndex] != 0 {
js_parser.go#L11798: if p.options.ts.Parse && p.tsUseCounts[s.NamespaceRef.InnerIndex] != 0 {
js_parser.go#L11821: if p.options.ts.Parse && p.tsUseCounts[item.Name.Ref.InnerIndex] != 0 {
js_parser.go#L11853: if p.options.ts.Parse && foundImports && isUnusedInTypeScript && !p.options.preserveUnusedImportsTS {
js_parser.go#L11863: if p.options.mode != config.ModePassThrough {
js_parser.go#L12633: options: *options,
js_parser.go#L12719: if p.options.mode != config.ModeBundle {
js_parser.go#L12758: for _, file := range p.options.injectedFiles {
js_parser.go#L12784: if !config.IsTreeShakingEnabled(p.options.mode, p.options.outputFormat) {
js_parser.go#L12882: if p.options.mode != config.ModePassThrough {
js_parser.go#L12893: if p.hasImportMeta && (p.options.unsupportedJSFeatures.Has(compat.ImportMeta) ||
js_parser.go#L12894: (p.options.mode != config.ModePassThrough && !p.options.outputFormat.KeepES6ImportExportSyntax())) {
js_parser.go#L12902: if p.options.jsx.Parse {
js_parser.go#L12904: p.options.jsx.Factory = value
js_parser.go#L12907: p.options.jsx.Fragment = value
js_parser.go#L12962: if !p.options.minifyIdentifiers || p.source.Index == runtime.SourceIndex {
js_parser.go#L13041: if len(p.runtimeImports) > 0 && !p.options.omitRuntimeForTests {
js_parser.go#L13147: if p.options.minifyIdentifiers {
js_parser_lower.go#L20: if !p.options.unsupportedJSFeatures.Has(feature) {
js_parser_lower.go#L22: if p.options.mode == config.ModeBundle {
js_parser_lower.go#L26: if p.options.mode == config.ModeConvertFormat && !p.options.outputFormat.KeepES6ImportExportSyntax() {
js_parser_lower.go#L28: "Top-level await is currently not supported with the %q output format", p.options.outputFormat.String()))
js_parser_lower.go#L125: return p.options.outputFormat == config.FormatESModule
js_parser_lower.go#L197: if p.options.unsupportedJSFeatures.Has(loweredFeature) {
js_parser_lower.go#L203: return p.options.unsupportedJSFeatures.Has(p.symbols[private.Ref.InnerIndex].Kind.Feature())
js_parser_lower.go#L232: if p.options.unsupportedJSFeatures.Has(compat.ObjectRestSpread) {
js_parser_lower.go#L289: if p.options.unsupportedJSFeatures.Has(compat.AsyncAwait) && *isAsync {
js_parser_lower.go#L526: if !p.options.unsupportedJSFeatures.Has(compat.OptionalChain) && !containsPrivateName {
js_parser_lower.go#L808: if p.options.unsupportedJSFeatures.Has(compat.NullishCoalescing) {
js_parser_lower.go#L826: if p.options.unsupportedJSFeatures.Has(compat.NullishCoalescing) {
js_parser_lower.go#L905: if p.options.unsupportedJSFeatures.Has(compat.ObjectRestSpread) {
js_parser_lower.go#L1114: if !p.options.unsupportedJSFeatures.Has(compat.ObjectRestSpread) {
js_parser_lower.go#L1142: if !p.options.unsupportedJSFeatures.Has(compat.ObjectRestSpread) {
js_parser_lower.go#L1186: if !p.options.unsupportedJSFeatures.Has(compat.ObjectRestSpread) {
js_parser_lower.go#L1238: if !p.options.unsupportedJSFeatures.Has(compat.ObjectRestSpread) {
js_parser_lower.go#L1558: if p.options.mangleSyntax && symbol.UseCountEstimate == 0 {
js_parser_lower.go#L1663: avoidTDZ := p.options.mode == config.ModeBundle && p.currentScope.Parent == nil
js_parser_lower.go#L1667: if p.options.ts.Parse && prop.IsMethod {
js_parser_lower.go#L1698: shouldOmitFieldInitializer := p.options.ts.Parse && !prop.IsMethod && prop.Initializer == nil &&
js_parser_lower.go#L1699: !p.options.useDefineForClassFields && !mustLowerPrivate
js_parser_lower.go#L1703: ((!prop.IsStatic && p.options.unsupportedJSFeatures.Has(compat.ClassField)) ||
js_parser_lower.go#L1704: (prop.IsStatic && p.options.unsupportedJSFeatures.Has(compat.ClassStaticField)))
js_parser_lower.go#L1715: if prop.IsComputed && (p.options.ts.Parse || len(prop.TSDecorators) > 0 ||
js_parser_lower.go#L1744: if p.options.ts.Parse {
js_parser_lower.go#L1796: if !prop.IsMethod && (mustLowerField || (p.options.ts.Parse && !p.options.useDefineForClassFields && (!prop.IsStatic || private == nil))) {
js_parser_lower.go#L1850: } else if private == nil && p.options.useDefineForClassFields {
js_parser_lower.go#L1968: if p.options.ts.Parse {
js_parser_lower.go#L2082: if p.options.keepNames && nameToKeep != "" {
js_parser_lower.go#L2103: if p.options.keepNames && nameToKeep != "" {
js_parser_lower.go#L2268: if p.fnOrArrowDataVisit.isAsync && p.options.unsupportedJSFeatures.Has(compat.AsyncAwait) {
ts_parser.go#L749: if p.options.ts.Parse {
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |