func (n *UnaryExprOrTypeTraitExpr) Position() Position {
	return n.Pos
}
Position returns the position in the original source code.
package ast
type UnaryExprOrTypeTraitExpr struct {
	Addr       Address
	Pos        Position
	Type1      string
	Function   string
	Type2      string
	Type3      string
	ChildNodes []Node
}
func parseUnaryExprOrTypeTraitExpr(line string) *UnaryExprOrTypeTraitExpr {
	groups := groupsFromRegex(
		`<(?P<position>.*)>
		 '(?P<type1>.+?)'
		 (?P<function>[^ ]+)
		(?P<type2> '.+?')?
		(:'(?P<type3>.*?)')?
		`,
		line,
	)
	return &UnaryExprOrTypeTraitExpr{
		Addr:       ParseAddress(groups["address"]),
		Pos:        NewPositionFromString(groups["position"]),
		Type1:      groups["type1"],
		Function:   groups["function"],
		Type2:      removeQuotes(groups["type2"]),
		Type3:      groups["type3"],
		ChildNodes: []Node{},
	}
}
func (n *UnaryExprOrTypeTraitExpr) AddChild(node Node) {
	n.ChildNodes = append(n.ChildNodes, node)
}
func (n *UnaryExprOrTypeTraitExpr) Address() Address {
	return n.Addr
}
func (n *UnaryExprOrTypeTraitExpr) Children() []Node {
	return n.ChildNodes
}