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

Method emitParameters

internal/printer/printer.go:1530–1533  ·  view source on GitHub ↗
(parentNode *ast.Node, parameters *ast.ParameterList)

Source from the content-addressed store, hash-verified

1528}
1529
1530func (p *Printer) emitParameters(parentNode *ast.Node, parameters *ast.ParameterList) {
1531 p.generateAllNames(parameters)
1532 p.emitList((*Printer).emitParameterDeclarationNode, parentNode, parameters, LFParameters /*|core.IfElse(p.shouldAllowTrailingComma(parentNode, parameters), LFAllowTrailingComma, LFNone)*/) // TODO: preserve trailing comma after Strada migration
1533}
1534
1535func canEmitSimpleArrowHead(parentNode *ast.Node, parameters *ast.ParameterList) bool {
1536 // only arrow functions with a single parameter may have simple arrow head

Callers 4

emitSignatureMethod · 0.95
emitFunctionTypeMethod · 0.95
emitConstructorTypeMethod · 0.95

Calls 2

generateAllNamesMethod · 0.95
emitListMethod · 0.95

Tested by

no test coverage detected