Don't allow rename on the well-known ValueTuple types
Fixes #14159 The well-known ValueTuple types are very special in that you can ask for the SymbolInfo on the ValueTuple token and not get back the ValueTuple type. This means that the token we invoke rename on has no locations, which Rename Tracking mistakenly interpreted as being okay to rename. This has been fixed, and also the RenameUtilities.GetTokenRenameInfo method has been updated to return NoSymbolsTokenInfo when it finds an ITypeSymbol with IsTupleType.
Showing
想要评论请 注册 或 登录