github.com/evanw/esbuild/internal/js_ast.SImport.DefaultName (field)
20 uses
github.com/evanw/esbuild/internal/js_ast (current package)
js_ast.go#L1123: DefaultName *LocRef
github.com/evanw/esbuild/internal/bundler
linker.go#L3596: if s.DefaultName != nil {
linker.go#L3597: r.AddTopLevelSymbol(s.DefaultName.Ref)
github.com/evanw/esbuild/internal/js_parser
js_parser.go#L5800: stmt.DefaultName = &js_ast.LocRef{Loc: p.lexer.Loc(), Ref: p.storeNameInRef(defaultName)}
js_parser.go#L5840: return p.parseTypeScriptImportEqualsStmt(loc, opts, stmt.DefaultName.Loc, defaultName)
js_parser.go#L5891: if stmt.DefaultName != nil {
js_parser.go#L5892: name := p.loadNameFromRef(stmt.DefaultName.Ref)
js_parser.go#L5893: ref := p.declareSymbol(js_ast.SymbolImport, stmt.DefaultName.Loc, name)
js_parser.go#L5895: stmt.DefaultName.Ref = ref
js_parser.go#L7968: if s.DefaultName != nil {
js_parser.go#L7969: p.recordDeclaredSymbol(s.DefaultName.Ref)
js_parser.go#L11777: if s.DefaultName != nil {
js_parser.go#L11779: symbol := p.symbols[s.DefaultName.Ref.InnerIndex]
js_parser.go#L11782: if p.options.ts.Parse && p.tsUseCounts[s.DefaultName.Ref.InnerIndex] != 0 {
js_parser.go#L11788: s.DefaultName = nil
js_parser.go#L11954: if s.DefaultName != nil {
js_parser.go#L11955: p.namedImports[s.DefaultName.Ref] = js_ast.NamedImport{
js_parser.go#L11957: AliasLoc: s.DefaultName.Loc,
github.com/evanw/esbuild/internal/js_printer
js_printer.go#L2893: if s.DefaultName != nil {
js_printer.go#L2894: p.printSymbol(s.DefaultName.Ref)
![]() |
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. |