IsMapTypeExpression returns true if tpe is a MapType.
(tpe ast.BaseTerm)
| 131 | |
| 132 | // IsMapTypeExpression returns true if tpe is a MapType. |
| 133 | func 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. |
| 139 | func IsStructTypeExpression(tpe ast.BaseTerm) bool { |