Scalar returns an inferred type constant scalar with the value v.
(v interface{})
| 373 | |
| 374 | // Scalar returns an inferred type constant scalar with the value v. |
| 375 | func (m *Module) Scalar(v interface{}) Const { |
| 376 | ty := m.Types.TypeOf(v) |
| 377 | return m.ScalarOfType(v, ty) |
| 378 | } |
| 379 | |
| 380 | // Array returns an constant array with the value v and element type ty. |
| 381 | func (m *Module) Array(v interface{}, elTy Type) Const { |
no test coverage detected