Type returns the type of the constant expression.
()
| 41 | |
| 42 | // Type returns the type of the constant expression. |
| 43 | func (e *ExprAdd) Type() types.Type { |
| 44 | // Cache type if not present. |
| 45 | if e.Typ == nil { |
| 46 | e.Typ = e.X.Type() |
| 47 | } |
| 48 | return e.Typ |
| 49 | } |
| 50 | |
| 51 | // Ident returns the identifier associated with the constant expression. |
| 52 | func (e *ExprAdd) Ident() string { |