(elem any)
| 2175 | } |
| 2176 | |
| 2177 | func (l *locationAdorner) GetMetadata(elem any) string { |
| 2178 | var elemID int64 |
| 2179 | switch elem := elem.(type) { |
| 2180 | case ast.Expr: |
| 2181 | elemID = elem.ID() |
| 2182 | case ast.EntryExpr: |
| 2183 | elemID = elem.ID() |
| 2184 | } |
| 2185 | location, _ := l.GetLocation(elemID) |
| 2186 | return fmt.Sprintf("^#%d[%d,%d]#", elemID, location.Line(), location.Column()) |
| 2187 | } |
| 2188 | |
| 2189 | func convertMacroCallsToString(source *ast.SourceInfo) string { |
| 2190 | macroCalls := source.MacroCalls() |
nothing calls this directly
no test coverage detected