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

Function IsMapTypeExpression

symbols/typeexprs.go:133–136  ·  view source on GitHub ↗

IsMapTypeExpression returns true if tpe is a MapType.

(tpe ast.BaseTerm)

Source from the content-addressed store, hash-verified

131
132// IsMapTypeExpression returns true if tpe is a MapType.
133func IsMapTypeExpression(tpe ast.BaseTerm) bool {
134 op := typeOp(tpe)
135 return op != nil && *op == MapType
136}
137
138// IsStructTypeExpression returns true if tpe is a StructType.
139func IsStructTypeExpression(tpe ast.BaseTerm) bool {

Callers 3

feasibleAlternativesMethod · 0.92
TestAccessFunction · 0.85
MapTypeArgsFunction · 0.85

Calls 1

typeOpFunction · 0.85

Tested by 1

TestAccessFunction · 0.68