Azure / azure-sdk-tools

Tools repository leveraged by the Azure SDK team.
MIT License
113 stars 177 forks source link

Python Support for cross language APIView reviews #6428

Open mikekistler opened 1 year ago

mikekistler commented 1 year ago

Language parsers need to include a language independent common ID for each classes, APIs and other entities so APIView can map them across the languages

In support of #4033

tjprescott commented 1 year ago

This is already done for Python.

mikekistler commented 1 year ago

@tjprescott Can you explain what was done in Python, so we can use this as the design for what to do in the other languages?

tjprescott commented 1 year ago

This was the implementation PR. It may need to be updated since it was never used: https://github.com/Azure/azure-sdk-tools/commit/77c0f52b047203b45104ed05dc6c9bc2b484a70a

Basically it looks for a file in the WHL or source called apiview_mapping.json which would map all of the local Python definition IDs to the cross-language definition.