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

Function IsStructTypeExpression

symbols/typeexprs.go:139–142  ·  view source on GitHub ↗

IsStructTypeExpression returns true if tpe is a StructType.

(tpe ast.BaseTerm)

Source from the content-addressed store, hash-verified

137
138// IsStructTypeExpression returns true if tpe is a StructType.
139func 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.
145func IsFunTypeExpression(tpe ast.BaseTerm) bool {

Callers 6

feasibleAlternativesMethod · 0.92
boundOfArgFunction · 0.92
TestAccessFunction · 0.85
StructTypeRequiredArgsFunction · 0.85
StructTypeOptionaArgsFunction · 0.85
StructTypeFieldFunction · 0.85

Calls 1

typeOpFunction · 0.85

Tested by 1

TestAccessFunction · 0.68