MCPcopy Index your code
hub / github.com/microsoft/typescript-go / emitImportAttributeName

Method emitImportAttributeName

internal/printer/printer.go:1318–1327  ·  view source on GitHub ↗
(node *ast.ImportAttributeName)

Source from the content-addressed store, hash-verified

1316}
1317
1318func (p *Printer) emitImportAttributeName(node *ast.ImportAttributeName) {
1319 switch node.Kind {
1320 case ast.KindIdentifier:
1321 p.emitIdentifierName(node.AsIdentifier())
1322 case ast.KindStringLiteral:
1323 p.emitStringLiteral(node.AsStringLiteral())
1324 default:
1325 panic(fmt.Sprintf("unexpected ImportAttributeName: %v", node.Kind))
1326 }
1327}
1328
1329func (p *Printer) emitNestedModuleName(node *ast.ModuleName) {
1330 if node == nil {

Callers 1

emitImportAttributeMethod · 0.95

Calls 5

emitIdentifierNameMethod · 0.95
emitStringLiteralMethod · 0.95
panicFunction · 0.85
AsIdentifierMethod · 0.80
AsStringLiteralMethod · 0.80

Tested by

no test coverage detected