Info returns a copy of the SourceInfo with the given location.
(location string)
| 31 | |
| 32 | // Info returns a copy of the SourceInfo with the given location. |
| 33 | func (t *TestExpr) Info(location string) *exprpb.SourceInfo { |
| 34 | info := proto.Clone(t.SourceInfo).(*exprpb.SourceInfo) |
| 35 | info.Location = location |
| 36 | return info |
| 37 | } |
| 38 | |
| 39 | var ( |
| 40 | // Empty generates a program with no instructions. |