Method
getAtServerValue
(atServer *ast.AtServerStmt, key string)
Source from the content-addressed store, hash-verified
| 232 | } |
| 233 | |
| 234 | func (api *API) getAtServerValue(atServer *ast.AtServerStmt, key string) string { |
| 235 | if atServer == nil { |
| 236 | return "" |
| 237 | } |
| 238 | |
| 239 | for _, val := range atServer.Values { |
| 240 | if val.Key.Token.Text == key { |
| 241 | return val.Value.Token.Text |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | return "" |
| 246 | } |
| 247 | |
| 248 | func (api *API) mergeAPI(in *API) error { |
| 249 | if api.Syntax.Value.Format() != in.Syntax.Value.Format() { |
Tested by
no test coverage detected