github.com/evanw/esbuild/internal/logger.Log.AddError (method)

59 uses

	github.com/evanw/esbuild/internal/logger (current package)
		logger.go#L1229: func (log Log) AddError(source *Source, loc Loc, text string) {

	github.com/evanw/esbuild/internal/bundler
		bundler.go#L1099: 			s.log.AddError(nil, logger.Loc{}, fmt.Sprintf("Duplicate injected file %q", prettyPath))
		bundler.go#L1107: 			s.log.AddError(nil, logger.Loc{}, fmt.Sprintf("Could not resolve %q", prettyPath))
		bundler.go#L1200: 					s.log.AddError(nil, logger.Loc{}, fmt.Sprintf("The entry point %q cannot be marked as external", path))
		bundler.go#L1211: 				s.log.AddError(nil, logger.Loc{}, fmt.Sprintf("Could not resolve %q%s", path, hint))
		bundler.go#L1225: 				s.log.AddError(nil, logger.Loc{}, fmt.Sprintf("Duplicate entry point %q", prettyPath))
		bundler.go#L1575: 				log.AddError(nil, logger.Loc{}, "Refusing to overwrite input file: "+b.files[sourceIndex].source.PrettyPath)
		bundler.go#L1609: 			log.AddError(nil, logger.Loc{}, "Two output files share the same path but have different contents: "+outputPath)
		linker.go#L779: 		c.log.AddError(nil, logger.Loc{},

	github.com/evanw/esbuild/internal/css_lexer
		css_lexer.go#L585: 			lexer.log.AddError(&lexer.source, loc, "Expected \")\" to end URL token")
		css_lexer.go#L595: 				lexer.log.AddError(&lexer.source, loc, "Expected \")\" to end URL token")
		css_lexer.go#L660: 			lexer.log.AddError(&lexer.source, logger.Loc{Start: lexer.Token.Range.End()}, "Unterminated string token")
		css_lexer.go#L664: 			lexer.log.AddError(&lexer.source, logger.Loc{Start: lexer.Token.Range.End()}, "Unterminated string token")

	github.com/evanw/esbuild/internal/js_lexer
		js_lexer.go#L2381: 		lexer.log.AddError(&lexer.source, loc, text)

	github.com/evanw/esbuild/internal/js_parser
		js_parser.go#L2408: 					p.log.AddError(&p.source, loc, "Invalid binding pattern")
		js_parser.go#L4060: 			p.log.AddError(&p.source, logger.Loc{Start: memberRange.Loc.Start + int32(index)}, "Unexpected \"-\"")
		js_parser.go#L4300: 				p.log.AddError(&p.source, d.Binding.Loc, "This constant must be initialized")
		js_parser.go#L4308: 		p.log.AddError(&p.source, decls[0].Binding.Loc, fmt.Sprintf("for-%s loops must have a single declaration", loopType))
		js_parser.go#L4317: 		p.log.AddError(&p.source, decls[0].Value.Loc, fmt.Sprintf("for-%s loop variables cannot have an initializer", loopType))
		js_parser.go#L4867: 					p.log.AddError(&p.source, firstDecoratorLoc, "TypeScript does not allow decorators on class constructors")
		js_parser.go#L5106: 					p.log.AddError(&p.source, logger.Loc{Start: asyncRange.End()}, "Unexpected newline after \"async\"")
		js_parser.go#L5121: 						p.log.AddError(&p.source, logger.Loc{Start: typeRange.End()}, "Unexpected newline after \"type\"")
		js_parser.go#L5947: 			p.log.AddError(&p.source, logger.Loc{Start: loc.Start + 5}, "Unexpected newline after \"throw\"")
		js_parser.go#L9830: 		p.log.AddError(&p.source, expr.Loc, "Invalid assignment target")
		sourcemap_parser.go#L22: 		log.AddError(&source, expr.Loc, "Invalid source map")

	github.com/evanw/esbuild/internal/resolver
		resolver.go#L806: 			r.log.AddError(nil, logger.Loc{},
		resolver.go#L870: 					r.log.AddError(nil, logger.Loc{}, fmt.Sprintf("Cannot find tsconfig file %q",
		resolver.go#L873: 					r.log.AddError(nil, logger.Loc{},
		resolver.go#L898: 		r.log.AddError(nil, logger.Loc{},
		resolver.go#L1095: 			r.log.AddError(nil, logger.Loc{},

	github.com/evanw/esbuild/pkg/api
		api_impl.go#L289: 		log.AddError(nil, logger.Loc{}, fmt.Sprintf("Invalid version: %q", engine.Version))
		api_impl.go#L319: 				log.AddError(nil, logger.Loc{}, fmt.Sprintf("External path %q cannot have more than one \"*\" wildcard", path))
		api_impl.go#L345: 			log.AddError(nil, logger.Loc{}, fmt.Sprintf("Invalid file extension: %q", ext))
		api_impl.go#L356: 				log.AddError(nil, logger.Loc{}, fmt.Sprintf("Invalid file extension: %q", ext))
		api_impl.go#L371: 			log.AddError(nil, logger.Loc{}, fmt.Sprintf("Invalid JSX %s: %q", name, text))
		api_impl.go#L391: 				log.AddError(nil, logger.Loc{}, fmt.Sprintf("Invalid define key: %q", key))
		api_impl.go#L419: 			log.AddError(nil, logger.Loc{}, fmt.Sprintf("Invalid define value (must be valid JSON syntax or a single identifier): %s", value))
		api_impl.go#L461: 				log.AddError(nil, logger.Loc{}, fmt.Sprintf("Invalid pure function: %q", key))
		api_impl.go#L484: 		log.AddError(nil, logger.Loc{}, fmt.Sprintf("Invalid %s: %s", pathKind, relPath))
		api_impl.go#L492: 			log.AddError(nil, logger.Loc{}, fmt.Sprintf("Invalid output extension: %q", value))
		api_impl.go#L500: 			log.AddError(nil, logger.Loc{}, fmt.Sprintf("Invalid output extension: %q (valid: .css, .js)", key))
		api_impl.go#L605: 		log.AddError(nil, logger.Loc{}, err.Error())
		api_impl.go#L699: 		log.AddError(nil, logger.Loc{},
		api_impl.go#L702: 		log.AddError(nil, logger.Loc{},
		api_impl.go#L705: 		log.AddError(nil, logger.Loc{}, "Cannot use both \"outfile\" and \"outdir\"")
		api_impl.go#L714: 			log.AddError(nil, logger.Loc{}, "Cannot use an external source map without an output path")
		api_impl.go#L717: 			log.AddError(nil, logger.Loc{}, "Cannot use \"metafile\" without an output path")
		api_impl.go#L721: 				log.AddError(nil, logger.Loc{}, "Cannot use the \"file\" loader without an output path")
		api_impl.go#L734: 			log.AddError(nil, logger.Loc{}, "Cannot use \"external\" without \"bundle\"")
		api_impl.go#L757: 		log.AddError(nil, logger.Loc{}, "Splitting currently only works with the \"esm\" format")
		api_impl.go#L784: 							log.AddError(nil, logger.Loc{}, fmt.Sprintf(
		api_impl.go#L787: 							log.AddError(nil, logger.Loc{}, fmt.Sprintf(
		api_impl.go#L799: 									log.AddError(nil, logger.Loc{}, fmt.Sprintf(
		api_impl.go#L807: 										log.AddError(nil, logger.Loc{}, fmt.Sprintf(
		api_impl.go#L1110: 		log.AddError(nil, logger.Loc{}, "Cannot transform with linked source maps")
		api_impl.go#L1113: 		log.AddError(nil, logger.Loc{},
		api_impl.go#L1175: 		impl.log.AddError(nil, logger.Loc{}, err.Error())
		api_impl.go#L1239: 		impl.log.AddError(nil, logger.Loc{}, err.Error())
		api_impl.go#L1283: 			log.AddError(nil, logger.Loc{}, fmt.Sprintf("Plugin at index %d is missing a name", i))