github.com/evanw/esbuild/internal/logger.Log.AddRangeWarning (method)
44 uses
github.com/evanw/esbuild/internal/logger (current package)
logger.go#L1258: func (log Log) AddRangeWarning(source *Source, r Range, text string) {
github.com/evanw/esbuild/internal/bundler
bundler.go#L442: args.log.AddRangeWarning(&source, record.Range,
bundler.go#L532: log.AddRangeWarning(source, comment.Range, fmt.Sprintf("Unsupported source map comment: %s", err.Error()))
bundler.go#L554: log.AddRangeWarning(source, comment.Range, "Unsupported source map comment")
bundler.go#L713: log.AddRangeWarning(importSource, importPathRange, fmt.Sprintf(
linker.go#L2026: c.log.AddRangeWarning(&source, js_lexer.RangeOfIdentifier(source, namedImport.AliasLoc),
linker.go#L2048: c.log.AddRangeWarning(&source, r, fmt.Sprintf("Import %q will always be undefined because there is no matching export", namedImport.Alias))
github.com/evanw/esbuild/internal/css_lexer
css_lexer.go#L424: lexer.log.AddRangeWarning(&lexer.source, lexer.Token.Range, "Comments in CSS use \"/* ... */\" instead of \"//\"")
github.com/evanw/esbuild/internal/css_parser
css_parser.go#L127: p.log.AddRangeWarning(&p.source, t.Range, text)
css_parser.go#L145: p.log.AddRangeWarning(&p.source, t.Range, text)
css_parser.go#L326: p.log.AddRangeWarning(&p.source, p.current().Range,
css_parser.go#L468: p.log.AddRangeWarning(&p.source, atRange, "\"@namespace\" rules are not supported")
css_parser.go#L470: p.log.AddRangeWarning(&p.source, atRange, fmt.Sprintf("%q is not a known rule name", "@"+atToken))
github.com/evanw/esbuild/internal/js_lexer
js_lexer.go#L1180: lexer.log.AddRangeWarning(&lexer.source, lexer.Range(),
js_lexer.go#L1335: lexer.log.AddRangeWarning(&lexer.source, lexer.Range(),
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L509: p.log.AddRangeWarning(&p.source, r,
js_parser.go#L512: p.log.AddRangeWarning(&p.source, r,
js_parser.go#L9279: p.log.AddRangeWarning(&p.source, r, fmt.Sprintf("The \"typeof\" operator will never evaluate to %q", value))
js_parser.go#L9327: p.log.AddRangeWarning(&p.source, r, text)
js_parser.go#L9337: p.log.AddRangeWarning(&p.source, p.source.RangeOfOperatorBefore(afterOpLoc, op), text)
js_parser.go#L9352: p.log.AddRangeWarning(&p.source, p.source.RangeOfOperatorBefore(afterOpLoc, op), text)
js_parser.go#L9367: p.log.AddRangeWarning(&p.source, r,
js_parser.go#L10527: p.log.AddRangeWarning(&p.source, r, fmt.Sprintf("Writing to getter-only property %q will throw", name))
js_parser.go#L10530: p.log.AddRangeWarning(&p.source, r, fmt.Sprintf("Reading from setter-only property %q will throw", name))
js_parser.go#L10633: p.log.AddRangeWarning(&p.source, r, "Attempting to delete a property of \"super\" will throw a ReferenceError")
js_parser.go#L11125: p.log.AddRangeWarning(&p.source, r, text)
js_parser.go#L11286: p.log.AddRangeWarning(&p.source, js_lexer.RangeOfIdentifier(p.source, e.Target.Loc),
js_parser.go#L11362: p.log.AddRangeWarning(&p.source, r,
js_parser.go#L11374: p.log.AddRangeWarning(&p.source, r, fmt.Sprintf(
js_parser.go#L11379: p.log.AddRangeWarning(&p.source, r, "Converting \"require\" to \"esm\" is currently not supported")
js_parser.go#L11613: p.log.AddRangeWarning(&p.source, r,
js_parser.go#L12858: p.log.AddRangeWarning(&p.source, span.Range, fmt.Sprintf("Invalid JSX %s: %s", name, span.Text))
js_parser_lower.go#L105: p.log.AddRangeWarning(&p.source, r,
json_parser.go#L122: p.log.AddRangeWarning(&p.source, keyRange, fmt.Sprintf("Duplicate key %q in object literal", keyText))
sourcemap_parser.go#L37: log.AddRangeWarning(&source, keyRange, "Source maps with \"sections\" are not supported")
sourcemap_parser.go#L220: log.AddRangeWarning(&source, r,
github.com/evanw/esbuild/internal/resolver
resolver.go#L716: r.log.AddRangeWarning(&source, extendsRange,
resolver.go#L747: r.log.AddRangeWarning(&source, extendsRange,
resolver.go#L760: r.log.AddRangeWarning(&source, extendsRange,
tsconfig_json.go#L112: log.AddRangeWarning(&source, source.RangeOfString(valueJSON.Loc),
tsconfig_json.go#L165: log.AddRangeWarning(&source, source.RangeOfString(prop.Value.Loc), fmt.Sprintf(
tsconfig_json.go#L185: log.AddRangeWarning(&source, warnRange, fmt.Sprintf("Invalid JSX member expression: %q", text))
tsconfig_json.go#L198: log.AddRangeWarning(&source, r, fmt.Sprintf(
tsconfig_json.go#L249: log.AddRangeWarning(&source, r, fmt.Sprintf(
 |
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. |