IsStructTypeExpression returns true if tpe is a StructType.
(tpe ast.BaseTerm)
| 137 | |
| 138 | // IsStructTypeExpression returns true if tpe is a StructType. |
| 139 | func IsStructTypeExpression(tpe ast.BaseTerm) bool { |
| 140 | op := typeOp(tpe) |
| 141 | return op != nil && op.Symbol == StructType.Symbol |
| 142 | } |
| 143 | |
| 144 | // IsFunTypeExpression returns true if tpe is a UnionType. |
| 145 | func IsFunTypeExpression(tpe ast.BaseTerm) bool { |