NewTypedCastExpr returns a new CastExpr that is verified to be well-typed.
(expr TypedExpr, typ *types.T)
| 1559 | |
| 1560 | // NewTypedCastExpr returns a new CastExpr that is verified to be well-typed. |
| 1561 | func NewTypedCastExpr(expr TypedExpr, typ *types.T) *CastExpr { |
| 1562 | node := &CastExpr{Expr: expr, Type: typ, SyntaxMode: CastShort} |
| 1563 | node.typ = typ |
| 1564 | return node |
| 1565 | } |
| 1566 | |
| 1567 | // ArraySubscripts represents a sequence of one or more array subscripts. |
| 1568 | type ArraySubscripts []*ArraySubscript |
no outgoing calls
no test coverage detected
searching dependent graphs…