(elem any)
| 2749 | } |
| 2750 | |
| 2751 | func (l *locationAdorner) GetMetadata(elem any) string { |
| 2752 | var elemID int64 |
| 2753 | switch elem := elem.(type) { |
| 2754 | case ast.Expr: |
| 2755 | elemID = elem.ID() |
| 2756 | case ast.EntryExpr: |
| 2757 | elemID = elem.ID() |
| 2758 | } |
| 2759 | location, _ := l.GetLocation(elemID) |
| 2760 | return fmt.Sprintf("^#%d[%d,%d]#", elemID, location.Line(), location.Column()) |
| 2761 | } |
| 2762 | |
| 2763 | func convertMacroCallsToString(source *ast.SourceInfo) string { |
| 2764 | macroCalls := source.MacroCalls() |
nothing calls this directly
no test coverage detected