(
this: Top,
api: Top
)
| 152 | }) |
| 153 | }, |
| 154 | addHttpApi( |
| 155 | this: Top, |
| 156 | api: Top |
| 157 | ) { |
| 158 | const newGroups = { ...this.groups } |
| 159 | for (const key of Object.keys(api.groups)) { |
| 160 | const group = api.groups[key] |
| 161 | InternalRecord.assignProperty( |
| 162 | newGroups, |
| 163 | key, |
| 164 | group.annotateMerge(Context.merge(api.annotations, group.annotations)) |
| 165 | ) |
| 166 | } |
| 167 | return makeProto({ |
| 168 | ...optionsFromApi(this), |
| 169 | groups: newGroups |
| 170 | }) |
| 171 | }, |
| 172 | prefix(this: Top, prefix: PathInput) { |
| 173 | return makeProto({ |
| 174 | ...optionsFromApi(this), |
nothing calls this directly
no test coverage detected