(e ast.NavigableExpr, exemptFunctions []string)
| 406 | } |
| 407 | |
| 408 | func inExemptFunction(e ast.NavigableExpr, exemptFunctions []string) bool { |
| 409 | parent, found := e.Parent() |
| 410 | for found { |
| 411 | if parent.Kind() == ast.CallKind { |
| 412 | fnName := parent.AsCall().FunctionName() |
| 413 | for _, exempt := range exemptFunctions { |
| 414 | if exempt == fnName { |
| 415 | return true |
| 416 | } |
| 417 | } |
| 418 | } |
| 419 | parent, found = parent.Parent() |
| 420 | } |
| 421 | return false |
| 422 | } |
| 423 | |
| 424 | func isOptionalIndex(i int, optIndices []int32) bool { |
| 425 | for _, optInd := range optIndices { |
no test coverage detected