Dapeng Zhang
Dapeng Zhang
This is not a PR meant to be merged. Just post it in case the feature branch gets cleaned up
This PR introduces a global cache for types when we are doing the type conversion from TCGC's type to our input types in the emitter.
Support the generation for typespec such as: ```typespec op foo(...Bar): void; ``` Currently our generator here just ignores the body, even if `Bar` is a body parameter. I notice this...
The property in structs should not have setters.
There are duplicated APIs for attributes: 1. https://github.com/microsoft/typespec/blob/26c2924413b0452441b9d401e34c6a44143f9e2d/packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Providers/TypeProvider.cs#L30 2. https://github.com/microsoft/typespec/blob/26c2924413b0452441b9d401e34c6a44143f9e2d/packages/http-client-csharp/generator/Microsoft.Generator.CSharp/src/Providers/TypeProvider.cs#L214 For attributes on types, I think we should do the same as we did for other members such as properties,...
See: https://github.com/Azure/azure-sdk-for-net/blob/97a2911b0ff82385ee3499e2bb13c24b37f4d74f/sdk/resourcemanager/Azure.ResourceManager/README.md#rehydrate-a-long-running-operation There is a link implying that there are more samples for this topic, but actually that directory does not have such samples
Fixes https://github.com/Azure/azure-sdk-for-net/issues/49144 # Contributing to the Azure SDK Please see our [CONTRIBUTING.md](https://github.com/Azure/azure-sdk-for-net/blob/main/CONTRIBUTING.md) if you are not familiar with contributing to this repository or have questions. For specific information about pull...
In our generator, we have a post processor to trim unused models. When it does this, it will also remove the corresponding entry in the model factory. For instance, if...