Commit b6a0a02
authored
[http-server-csharp] add arrayDeclarationContext (#10327)
In my work in [the openai-openapi-pr
repo](https://github.com/microsoft/openai-openapi-pr), the service
emitter would not compile and gave the following error message:
```
Error: Emit context must have a scope set in order to create references to declarations.
at compilerAssert (asset-emitter.js)
at invokeReference (asset-emitter.js)
at CSharpCodeEmitter.collectionDeclaration (service.js)
at CSharpCodeEmitter.arrayDeclaration (service.js)
```
I fixed the issue when I added `arrayDeclarationContext` to the local
`node_modules` in my repo. Here is the fix that I made as well as a test
that demonstrates the issue.1 parent ba787fc commit b6a0a02
3 files changed
Lines changed: 81 additions & 1 deletion
File tree
- .chronus/changes
- packages/http-server-csharp
- src/lib
- test
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
217 | 226 | | |
218 | 227 | | |
219 | 228 | | |
| |||
1265 | 1274 | | |
1266 | 1275 | | |
1267 | 1276 | | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
1268 | 1281 | | |
1269 | 1282 | | |
1270 | 1283 | | |
| |||
1426 | 1439 | | |
1427 | 1440 | | |
1428 | 1441 | | |
1429 | | - | |
| 1442 | + | |
1430 | 1443 | | |
1431 | 1444 | | |
1432 | 1445 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| |||
3396 | 3401 | | |
3397 | 3402 | | |
3398 | 3403 | | |
| 3404 | + | |
| 3405 | + | |
| 3406 | + | |
| 3407 | + | |
| 3408 | + | |
| 3409 | + | |
| 3410 | + | |
| 3411 | + | |
| 3412 | + | |
| 3413 | + | |
| 3414 | + | |
| 3415 | + | |
| 3416 | + | |
| 3417 | + | |
| 3418 | + | |
| 3419 | + | |
| 3420 | + | |
| 3421 | + | |
| 3422 | + | |
| 3423 | + | |
| 3424 | + | |
| 3425 | + | |
| 3426 | + | |
| 3427 | + | |
| 3428 | + | |
| 3429 | + | |
| 3430 | + | |
| 3431 | + | |
| 3432 | + | |
| 3433 | + | |
| 3434 | + | |
| 3435 | + | |
| 3436 | + | |
| 3437 | + | |
| 3438 | + | |
| 3439 | + | |
| 3440 | + | |
| 3441 | + | |
| 3442 | + | |
| 3443 | + | |
| 3444 | + | |
| 3445 | + | |
| 3446 | + | |
| 3447 | + | |
| 3448 | + | |
| 3449 | + | |
| 3450 | + | |
| 3451 | + | |
| 3452 | + | |
| 3453 | + | |
| 3454 | + | |
| 3455 | + | |
| 3456 | + | |
| 3457 | + | |
| 3458 | + | |
3399 | 3459 | | |
3400 | 3460 | | |
3401 | 3461 | | |
| |||
0 commit comments