Closed ivanperez-keera closed 3 months ago
Change Manager: Confirmed that the issue exists.
Technical Lead: Confirmed that the issue should be addressed.
Technical Lead: Issue scheduled for fixing in Copilot 3.19.
Fix assigned to: @ivanperez-keera .
Implementor: Solution implemented, review requested.
Change Manager: Verified that:
Solution is implemented:
[X] The code proposed compiles and passes all tests. Details: Build log: https://app.travis-ci.com/github/Copilot-Language/copilot/builds/269341830
[X] The solution proposed produces the expected result. Details: Evaluated by manual inspection due to lack of easy, automated, forward-compatible way of checking.
Change Manager: Implementation ready to be merged.
Description
The functions
Copilot.Core.Type.typename
,Copilot.Core.Type.tylength
,Copilot.Core.Type.tysize
,Copilot.Core.Type.fieldname
,Copilot.Core.Type.accessorname
andCopilot.Core.Type.Array.arrayelems
are not being used by any other part of Copilot.They were replaced by functions with similar names in lowerCamelCase format. The original functions were deprecated in Copilot 3.17 and no messages have been received requesting that they be kept in this library.
As per our internal policy of waiting 3 versions from deprecation until a public interface declaration can be removed, these functions can now be removed.
Type
Additional context
Requester
Method to check presence of bug
There is no easy, forwards-compatible, automated way of detecting that the functions are present and also deprecated. Manual inspection is recommended. At present, they are the only deprecated functions in
copilot-core
, so their presence can be found with:Expected result
The strings returned by the command above should be empty (nothing is deprecated).
Desired result
The strings returned by the command above should be empty (nothing is deprecated).
Proposed solution
Remove the deprecated functions from
Copilot.Core.Type
andCopilot.Core.Type.Array
.Further notes
None.