[tcgc] put all
scope for decorator to the last calculation priority
#1961
Labels
lib:tcgc
Issues for @azure-tools/typespec-client-generator-core library
for the following typespec:
current tcgc result for A name is:
csharp -> "Foo"
java -> "Qux"
others -> "Bar"
we received feedback about why go does not get the
Baz
name but getBar
.the reason is tcgc get the
@clientName
decorator info for A from compiler with:"Baz" for "go";
"Bar" for all;
"Foo" for csharp";
"Qux" for "java";
then, tcgc handle them one by one, and overwrite former with the later setting. that's our current design.
we are thinking about put the all scope to the last calculation, which could make the result more reasonable. if multiple setting for all scope, still later overwrite former, but when calculation, all scope is the last priority.
then the result for the above example should be:
csharp -> "Foo"
java -> "Qux"
go -> "Baz"
others -> "Bar"
The text was updated successfully, but these errors were encountered: