MCPcopy
hub / github.com/google/mangle / NewSingletonType

Function NewSingletonType

symbols/typeexprs.go:117–119  ·  view source on GitHub ↗

NewSingletonType returns a new SingletonType.

(d ast.Constant)

Source from the content-addressed store, hash-verified

115
116// NewSingletonType returns a new SingletonType.
117func NewSingletonType(d ast.Constant) ast.ApplyFn {
118 return newTypeExpr(SingletonType, d)
119}
120
121// BoolType returns a type named in honor of George Boole.
122func BoolType() ast.ApplyFn {

Callers 2

TestHasTypeFunction · 0.85
BoolTypeFunction · 0.85

Calls 1

newTypeExprFunction · 0.85

Tested by 1

TestHasTypeFunction · 0.68