(elem any)
| 316 | type idAdorner struct{} |
| 317 | |
| 318 | func (a *idAdorner) GetMetadata(elem any) string { |
| 319 | e, isExpr := elem.(ast.Expr) |
| 320 | if !isExpr { |
| 321 | return "" |
| 322 | } |
| 323 | return fmt.Sprintf("@id:%d ", e.ID()) |
| 324 | } |
| 325 | |
| 326 | // ToDebugStringWithIDs returns a string representation with AST node IDs. |
| 327 | func ToDebugStringWithIDs(e ast.Expr) string { |