@@ -100,6 +100,7 @@ function childToHttpRequestNode(
100100 resource : StructureNode ,
101101 plugin : AngularCommonPlugin [ 'Instance' ] ,
102102) : ReadonlyArray < ReturnType < typeof $ . field | typeof $ . getter > > {
103+ // TODO: contract (self)
103104 const refChild = plugin . referenceSymbol ( createHttpRequestShellMeta ( resource ) ) ;
104105 const memberNameStr = toCase ( refChild . name , 'camelCase' ) ;
105106 const memberName = plugin . symbol ( memberNameStr ) ;
@@ -118,6 +119,7 @@ function childToHttpResourceNode(
118119 resource : StructureNode ,
119120 plugin : AngularCommonPlugin [ 'Instance' ] ,
120121) : ReadonlyArray < ReturnType < typeof $ . field | typeof $ . getter > > {
122+ // TODO: contract (self)
121123 const refChild = plugin . referenceSymbol ( createHttpResourceShellMeta ( resource ) ) ;
122124 const memberNameStr = toCase ( refChild . name , 'camelCase' ) ;
123125 const memberName = plugin . symbol ( memberNameStr ) ;
@@ -201,19 +203,23 @@ function implementHttpRequestFn<T extends ReturnType<typeof $.func | typeof $.me
201203 operation,
202204 } ) ;
203205
206+ // TODO: contract (?)
204207 const symbolClient = plugin . querySymbol ( { category : 'client' } ) ;
208+ // TODO: contract (cross)
205209 const symbolOptions = plugin . referenceSymbol ( {
206210 artifact : 'sdk' ,
207211 category : 'type' ,
208212 resource : 'client-options' ,
209213 } ) ;
214+ // TODO: contract (cross)
210215 const symbolDataType = plugin . querySymbol ( {
211216 artifact : 'types' ,
212217 category : 'type' ,
213218 resource : 'operation' ,
214219 resourceId : operation . id ,
215220 role : 'data' ,
216221 } ) ;
222+ // TODO: contract (?)
217223 const symbolResponseType = plugin . querySymbol ( {
218224 category : 'type' ,
219225 resource : 'operation' ,
@@ -262,18 +268,21 @@ function implementHttpResourceFn<T extends ReturnType<typeof $.func | typeof $.m
262268 operation,
263269 } ) ;
264270
271+ // TODO: contract (cross)
265272 const symbolOptions = plugin . referenceSymbol ( {
266273 artifact : 'sdk' ,
267274 category : 'type' ,
268275 resource : 'client-options' ,
269276 } ) ;
277+ // TODO: contract (cross)
270278 const symbolDataType = plugin . querySymbol ( {
271279 artifact : 'types' ,
272280 category : 'type' ,
273281 resource : 'operation' ,
274282 resourceId : operation . id ,
275283 role : 'data' ,
276284 } ) ;
285+ // TODO: contract (?)
277286 const symbolResponseType = plugin . querySymbol ( {
278287 category : 'type' ,
279288 resource : 'operation' ,
@@ -308,6 +317,7 @@ function implementHttpResourceFn<T extends ReturnType<typeof $.func | typeof $.m
308317 . do (
309318 $ . lazy ( ( ctx ) =>
310319 ctx
320+ // TODO: contract (self)
311321 . access ( plugin . referenceSymbol ( createHttpRequestFnMeta ( operation ) ) , {
312322 transform : ( node , index ) =>
313323 index === 0
0 commit comments