github.com/evanw/esbuild/internal/compat.JSFeature.Has (method)
58 uses
github.com/evanw/esbuild/internal/compat (current package)
js_table.go#L60: func (features JSFeature) Has(feature JSFeature) bool {
github.com/evanw/esbuild/internal/bundler
linker.go#L1656: if c.options.UnsupportedJSFeatures.Has(compat.Arrow) {
linker.go#L3406: if c.options.UnsupportedJSFeatures.Has(compat.Arrow) {
linker.go#L3767: if c.options.UnsupportedJSFeatures.Has(compat.Arrow) {
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L2036: if p.options.unsupportedJSFeatures.Has(declare.Feature()) {
js_parser.go#L2757: if p.options.unsupportedJSFeatures.Has(compat.TemplateLiteral) {
js_parser.go#L3248: if p.options.unsupportedJSFeatures.Has(compat.ImportMeta) {
js_parser.go#L5556: if p.options.unsupportedJSFeatures.Has(compat.OptionalCatchBinding) {
js_parser.go#L6600: if p.options.unsupportedJSFeatures.Has(compat.Let) {
js_parser.go#L7879: if !p.options.unsupportedJSFeatures.Has(compat.NullishCoalescing) {
js_parser.go#L8033: if p.options.unsupportedJSFeatures.Has(compat.ExportStarAs) {
js_parser.go#L8962: replaceThisInStaticFieldInit := p.options.unsupportedJSFeatures.Has(compat.ClassStaticField) ||
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#L9253: if p.options.asciiOnly && p.options.unsupportedJSFeatures.Has(compat.UnicodeEscapes) &&
js_parser.go#L9862: if p.fnOrArrowDataVisit.isArrow && p.options.unsupportedJSFeatures.Has(compat.Arrow) && p.fnOnlyDataVisit.isThisNested {
js_parser.go#L10210: if p.options.unsupportedJSFeatures.Has(compat.NullishCoalescing) {
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#L10537: if p.options.unsupportedJSFeatures.Has(kind.Feature()) && e.OptionalChain == js_ast.OptionalChainNone &&
js_parser.go#L10895: if p.options.unsupportedJSFeatures.Has(compat.AsyncAwait) {
js_parser.go#L11151: if p.options.unsupportedJSFeatures.Has(compat.Arrow) {
js_parser.go#L11447: if p.options.unsupportedJSFeatures.Has(compat.Arrow) {
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#L12893: if p.hasImportMeta && (p.options.unsupportedJSFeatures.Has(compat.ImportMeta) ||
js_parser_lower.go#L20: if !p.options.unsupportedJSFeatures.Has(feature) {
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#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#L2268: if p.fnOrArrowDataVisit.isAsync && p.options.unsupportedJSFeatures.Has(compat.AsyncAwait) {
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L300: } else if !unsupportedFeatures.Has(compat.UnicodeEscapes) {
js_printer.go#L416: if !p.options.UnsupportedFeatures.Has(compat.UnicodeEscapes) {
js_printer.go#L758: !unsupportedJSFeatures.Has(compat.UnicodeEscapes) ||
js_printer.go#L764: !p.options.UnsupportedFeatures.Has(compat.UnicodeEscapes) ||
js_printer.go#L770: !p.options.UnsupportedFeatures.Has(compat.UnicodeEscapes) ||
js_printer.go#L801: } else if !p.options.UnsupportedFeatures.Has(compat.UnicodeEscapes) {
js_printer.go#L1157: if !p.options.UnsupportedFeatures.Has(compat.ObjectExtensions) && item.Value != nil {
js_printer.go#L1224: if p.options.UnsupportedFeatures.Has(compat.TemplateLiteral) {
js_printer.go#L1298: if p.options.UnsupportedFeatures.Has(compat.Arrow) {
js_printer.go#L1339: if p.options.UnsupportedFeatures.Has(compat.Arrow) {
js_printer.go#L1807: if e.PreferTemplate && !p.options.MangleSyntax && !p.options.UnsupportedFeatures.Has(compat.TemplateLiteral) {
github.com/evanw/esbuild/internal/runtime
runtime.go#L19: return !unsupportedFeatures.Has(compat.Let) && !unsupportedFeatures.Has(compat.Arrow)
![]() |
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. |