(text string)
| 5904 | } |
| 5905 | |
| 5906 | func (p *Parser) internIdentifier(text string) string { |
| 5907 | if identifier, ok := p.identifiers[text]; ok { |
| 5908 | return identifier |
| 5909 | } |
| 5910 | identifier := text |
| 5911 | if p.identifiers == nil { |
| 5912 | p.identifiers = make(map[string]string) |
| 5913 | } |
| 5914 | p.identifiers[identifier] = identifier |
| 5915 | return identifier |
| 5916 | } |
| 5917 | |
| 5918 | func (p *Parser) newNodeList(loc core.TextRange, nodes []*ast.Node) *ast.NodeList { |
| 5919 | list := p.factory.NewNodeList(nodes) |
no test coverage detected