Type returns the type of the constant expression.
()
| 89 | |
| 90 | // Type returns the type of the constant expression. |
| 91 | func (e *ExprFAdd) Type() types.Type { |
| 92 | // Cache type if not present. |
| 93 | if e.Typ == nil { |
| 94 | e.Typ = e.X.Type() |
| 95 | } |
| 96 | return e.Typ |
| 97 | } |
| 98 | |
| 99 | // Ident returns the identifier associated with the constant expression. |
| 100 | func (e *ExprFAdd) Ident() string { |