()
| 240 | a.root = scope |
| 241 | } |
| 242 | func (a *AnnotatedTree) DumpSymbol() string { |
| 243 | var buf strings.Builder |
| 244 | Scope2String(&buf, a.root, "") |
| 245 | return buf.String() |
| 246 | } |
| 247 | |
| 248 | func Scope2String(buf *strings.Builder, scope symbol.Scope, indent string) { |
| 249 | buf.WriteString(indent) |
no test coverage detected