MCPcopy Create free account
hub / github.com/coder/guts / ImportSpecifier

Struct ImportSpecifier

bindings/declarations.go:161–165  ·  view source on GitHub ↗

ImportSpecifier is a single named import entry inside the braces of an `import { ... }` clause. Name="foo", Alias="" -> foo Name="foo", Alias="bar" -> foo as bar IsTypeOnly=true -> type foo, type foo as bar

Source from the content-addressed store, hash-verified

159// Name="foo", Alias="bar" -> foo as bar
160// IsTypeOnly=true -> type foo, type foo as bar
161type ImportSpecifier struct {
162 Name string
163 Alias string
164 IsTypeOnly bool
165}
166
167func (*ImportSpecifier) isNode() {}
168

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected