ConsenSysDiligence / ConsenSysDiligence/python-solidity-parser
Feature Request: Get object's raw source
Ouverte
- Langage dominant
- Python
- Étoiles
- 145
- Forks
- 40
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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!
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.