typespec icon indicating copy to clipboard operation
typespec copied to clipboard

Duplicated `GetAttributes` and `BuildAttributes` in `TypeProvider`

Open ArcturusZhang opened this issue 4 months ago • 4 comments

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, fields, methods, ctors, etc

ArcturusZhang avatar Sep 25 '24 06:09 ArcturusZhang