Type returns the type of the constant expression.
()
| 133 | |
| 134 | // Type returns the type of the constant expression. |
| 135 | func (e *ExprSub) Type() types.Type { |
| 136 | // Cache type if not present. |
| 137 | if e.Typ == nil { |
| 138 | e.Typ = e.X.Type() |
| 139 | } |
| 140 | return e.Typ |
| 141 | } |
| 142 | |
| 143 | // Ident returns the identifier associated with the constant expression. |
| 144 | func (e *ExprSub) Ident() string { |