package ast

Import Path
	github.com/evanw/esbuild/internal/ast (on go.dev)

Dependency Relation
	imports one package, and imported by 11 packages

Involved Source Files ast.go
Package-Level Type Names (total 3, all are exported)
/* sort exporteds by: | */
( T) IsFromCSS() bool ( T) StringForMetafile() string func github.com/evanw/esbuild/internal/resolver.Resolver.ProbeResolvePackageAsRelative(sourceDir string, importPath string, kind ImportKind) *resolver.ResolveResult func github.com/evanw/esbuild/internal/resolver.Resolver.Resolve(sourceDir string, importPath string, kind ImportKind) *resolver.ResolveResult const ImportAt const ImportDynamic const ImportEntryPoint const ImportRequire const ImportRequireResolve const ImportStmt const ImportURL
If true, this "export * from 'path'" statement is evaluated at run-time by calling the "__exportStar()" helper function If this is true, the import contains syntax like "* as ns". This is used to determine whether modules that have no exports need to be wrapped in a CommonJS wrapper or not. True for require calls like this: "try { require() } catch {}". In this case we shouldn't generate an error if the path could not be resolved. Sometimes the parser creates an import record and decides it isn't needed. For example, TypeScript code may have import statements that later turn out to be type-only imports after analyzing the whole file. Kind ImportKind Path logger.Path Range logger.Range The resolved source index for an internal import (within the bundle) or nil for an external import (not included in the bundle) If true, this was originally written as a bare "import 'file'" statement Tell the printer to wrap this call to "require()" in "__toModule(...)"
This stores a 32-bit index where the zero value is an invalid index. This is a better alternative to storing the index as a pointer since that has the same properties but takes up more space and costs an extra pointer traversal. ( T) GetIndex() uint32 ( T) IsValid() bool T : database/sql/driver.Validator func MakeIndex32(index uint32) Index32
Package-Level Functions (only one, which is exported)
Package-Level Constants (total 7, all are exported)
A CSS "@import" rule
An "import()" expression with a string argument
An entry point provided by the user
A call to "require()"
A call to "require.resolve()"
An ES6 import or re-export statement
A CSS "url(...)" token