(node *ast.Node, pos int, end int)
| 5932 | } |
| 5933 | |
| 5934 | func (p *Parser) finishNodeWithEnd(node *ast.Node, pos int, end int) *ast.Node { |
| 5935 | node.Loc = core.NewTextRange(pos, end) |
| 5936 | node.Flags |= p.contextFlags |
| 5937 | if p.hasParseError { |
| 5938 | node.Flags |= ast.NodeFlagsThisNodeHasError |
| 5939 | p.hasParseError = false |
| 5940 | } |
| 5941 | p.overrideParentInImmediateChildren(node) |
| 5942 | return node |
| 5943 | } |
| 5944 | |
| 5945 | func (p *Parser) overrideParentInImmediateChildren(node *ast.Node) { |
| 5946 | p.currentParent = node |
no test coverage detected