(node *ast.Node)
| 360 | } |
| 361 | |
| 362 | func (b *Binder) getDisplayName(node *ast.Node) string { |
| 363 | nameNode := node.Name() |
| 364 | if nameNode != nil { |
| 365 | return scanner.DeclarationNameToString(nameNode) |
| 366 | } |
| 367 | name := b.getDeclarationName(node) |
| 368 | if name != ast.InternalSymbolNameMissing { |
| 369 | return name |
| 370 | } |
| 371 | return "(Missing)" |
| 372 | } |
| 373 | |
| 374 | func GetSymbolNameForPrivateIdentifier(containingClassSymbol *ast.Symbol, description string) string { |
| 375 | return ast.InternalSymbolNamePrefix + "#" + strconv.Itoa(int(ast.GetSymbolId(containingClassSymbol))) + "@" + description |
no test coverage detected