MCPcopy Index your code
hub / github.com/google/mangle / BoolType

Function BoolType

symbols/typeexprs.go:122–124  ·  view source on GitHub ↗

BoolType returns a type named in honor of George Boole.

()

Source from the content-addressed store, hash-verified

120
121// BoolType returns a type named in honor of George Boole.
122func BoolType() ast.ApplyFn {
123 return NewUnionType(NewSingletonType(ast.TrueConstant), NewSingletonType(ast.FalseConstant))
124}
125
126// IsListTypeExpression returns true if tpe is a ListType.
127func IsListTypeExpression(tpe ast.BaseTerm) bool {

Callers 2

builtin.goFile · 0.92
symbols.goFile · 0.85

Calls 2

NewUnionTypeFunction · 0.85
NewSingletonTypeFunction · 0.85

Tested by

no test coverage detected