Autodesk / Autodesk/AutomaticComponentToolkit
Handle reserved function names in binding and implementation languages
未关闭
- 主要语言
- Go
- 星标
- 53
- 派生
- 26
- PR 合并指标
- 30 天内没有已合并 PR
描述
Different languages define specific methods on classes per default, e.g. C# defines ToString, GetType and GetHashCode.
When components define methods with these names in one of their classes, this can lead to problems.
Solution:
in the binding (or implementation section) of the component, define overrides for these resreved names or keywords
e.g.
```xml
```
This would basically replace each occurrence of "GetType" in the C#-binding by "GetObjectType".
贡献指南
调研方向
首先定位处理组件绑定和实现部分并生成特定于语言的名称的代码。检查当前如何生成 C# 方法(例如 GetType),然后确定所提议的保留名称替换将如何表示和应用。完成标准是:绑定可以声明一个替换,并且生成的 C# 出现位置使用该替换,同时不改变其他语言。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp, go
- 领域
- tooling
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100