(node *ast.SignatureDeclaration, body *ast.Node, sourceFile *ast.SourceFile)
| 551 | } |
| 552 | |
| 553 | func tryGetFunctionOpenToken(node *ast.SignatureDeclaration, body *ast.Node, sourceFile *ast.SourceFile) *ast.Node { |
| 554 | if isNodeArrayMultiLine(node.Parameters(), sourceFile) { |
| 555 | openParenToken := astnav.FindChildOfKind(node, ast.KindOpenParenToken, sourceFile) |
| 556 | if openParenToken != nil { |
| 557 | return openParenToken |
| 558 | } |
| 559 | } |
| 560 | return astnav.FindChildOfKind(body, ast.KindOpenBraceToken, sourceFile) |
| 561 | } |
| 562 | |
| 563 | func isNodeArrayMultiLine(list []*ast.Node, sourceFile *ast.SourceFile) bool { |
| 564 | if len(list) == 0 { |
no test coverage detected