Azure / typespec-azure

About TypeSpec Azure Libraries
https://azure.github.io/typespec-azure/
MIT License
15 stars 42 forks source link

Generic decorators list should honor scope #1295

Open live1206 opened 3 months ago

live1206 commented 3 months ago

Clear and concise description of the problem

Right now, the generic decorators list will take all defined decorators regardless of the defined scope. We should not put the decorator into the list if it is not scoped for the current emitter.

Checklist

live1206 commented 3 months ago

cc @m-nash @tadelesh

chunyu3 commented 3 months ago

duplicate with https://github.com/Azure/typespec-azure/issues/1083

tadelesh commented 3 months ago

the scope concept is introduced by tcgc, not typespec, so we are hard to know whether a decorator has a scope, then how should tcgc do the filtering?