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

Function importSpecifier

typescript-engine/src/index.ts:295–305  ·  view source on GitHub ↗
(
  isTypeOnly: boolean,
  propertyName: string | undefined,
  name: string,
)

Source from the content-addressed store, hash-verified

293// original exported name; name is the local binding. When the two are the
294// same the alias is dropped at print time so the output is the short form.
295export function importSpecifier(
296 isTypeOnly: boolean,
297 propertyName: string | undefined,
298 name: string,
299): ts.ImportSpecifier {
300 return ts.factory.createImportSpecifier(
301 isTypeOnly,
302 propertyName ? identifier(propertyName) : undefined,
303 identifier(name),
304 );
305}
306
307// importDeclaration builds a named-imports declaration:
308// import { a, b as c } from "module"

Callers

nothing calls this directly

Calls 1

identifierFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…