ConsenSysDiligence / ConsenSysDiligence/python-solidity-parser
Feature Request: Get object's raw source
未关闭
- 主要语言
- Python
- 星标
- 145
- 派生
- 40
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi,
How are you? Thanks of all, thanks for doing the port of the tool, I was thinking of doing it myself and I found someone else did it :smile:
I was wondering if there was a way to get the raw source of an objects, let's say a contract or function.
I was thinking in something like:
```
sourceUnitObject = parser.objectify(sourceUnit)
raw_text = sourceUnitObject.contracts['MyContract'].raw
print(raw_text)
>>'contract MyContract { ..'
```
Thanks!
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。