Source File
ast.go
Belonging Package
github.com/evanw/esbuild/internal/ast
package ast
import
type ImportKind uint8
ImportURL
)
func ( ImportKind) () string {
switch {
case ImportStmt:
return "import-statement"
case ImportRequire:
return "require-call"
case ImportDynamic:
return "dynamic-import"
case ImportRequireResolve:
return "require-resolve"
case ImportAt:
return "import-rule"
case ImportURL:
return "url-token"
case ImportEntryPoint:
return "entry-point"
default:
panic("Internal error")
}
}
func ( ImportKind) () bool {
return == ImportAt || == ImportURL
}
type ImportRecord struct {
Range logger.Range
Path logger.Path
type Index32 struct {
flippedBits uint32
}
func ( uint32) Index32 {
return Index32{flippedBits: ^}
}
func ( Index32) () bool {
return .flippedBits != 0
}
func ( Index32) () uint32 {
return ^.flippedBits
![]() |
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. |