MCPcopy Create free account
hub / github.com/google/gapid / Scalar

Method Scalar

core/codegen/module.go:375–378  ·  view source on GitHub ↗

Scalar returns an inferred type constant scalar with the value v.

(v interface{})

Source from the content-addressed store, hash-verified

373
374// Scalar returns an inferred type constant scalar with the value v.
375func (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.
381func (m *Module) Array(v interface{}, elTy Type) Const {

Callers 15

CtorMethod · 0.95
ScalarOfTypeMethod · 0.95
SizeOfMethod · 0.95
AlignOfMethod · 0.95
OffsetOfMethod · 0.95
throwMethod · 0.45
abortMethod · 0.45
expressionAddrMethod · 0.45
mapAssignMethod · 0.45
sliceAssignMethod · 0.45
castTargetToCaptureMethod · 0.45
castCaptureToTargetMethod · 0.45

Calls 2

ScalarOfTypeMethod · 0.95
TypeOfMethod · 0.45

Tested by

no test coverage detected