View returns the view with the given name.
(name string)
| 150 | |
| 151 | // View returns the view with the given name. |
| 152 | func (rt *ResultTypeExpr) View(name string) *ViewExpr { |
| 153 | for _, v := range rt.Views { |
| 154 | if v.Name == name { |
| 155 | return v |
| 156 | } |
| 157 | } |
| 158 | return nil |
| 159 | } |
| 160 | |
| 161 | // HasMultipleViews returns true if the result type has more than one view. |
| 162 | func (rt *ResultTypeExpr) HasMultipleViews() bool { |
no outgoing calls
no test coverage detected