(t *ast.TypeNode, e *ast.Node, isAssertion bool)
| 672 | } |
| 673 | |
| 674 | func (p *Parser) makeNewCast(t *ast.TypeNode, e *ast.Node, isAssertion bool) *ast.Node { |
| 675 | var assert *ast.Node |
| 676 | if isAssertion { |
| 677 | assert = p.factory.NewAsExpression(e, t) |
| 678 | } else { |
| 679 | assert = p.factory.NewSatisfiesExpression(e, t) |
| 680 | } |
| 681 | p.finishNodeWithEnd(assert, e.Pos(), e.End()) |
| 682 | return assert |
| 683 | } |
| 684 | |
| 685 | func getClassLikeData(parent *ast.Node) *ast.ClassLikeBase { |
| 686 | var class *ast.ClassLikeBase |
no test coverage detected