Snippet Elements !!! Snippet elements Names
(node *ast.Identifier)
| 1101 | // |
| 1102 | |
| 1103 | func (p *Printer) emitIdentifierText(node *ast.Identifier) { |
| 1104 | f := ast.GetSourceFileOfNode(node.AsNode()) |
| 1105 | debug.Assert(f == nil || p.currentSourceFile == nil || f.FileName() == p.currentSourceFile.FileName()) |
| 1106 | text := p.getTextOfNode(node.AsNode(), false /*includeTrivia*/) |
| 1107 | |
| 1108 | if p.IdToSymbol != nil { |
| 1109 | if symbol, ok := p.IdToSymbol[node.AsNode()]; ok { |
| 1110 | p.writeSymbol(text, symbol) |
| 1111 | return |
| 1112 | } |
| 1113 | } |
| 1114 | p.write(text) |
| 1115 | } |
| 1116 | |
| 1117 | func (p *Printer) emitIdentifierName(node *ast.Identifier) { |
| 1118 | state := p.enterNode(node.AsNode()) |
no test coverage detected