Skip to content

Commit 7c978e4

Browse files
committedNov 29, 2021
update readme - loc
1 parent d003c45 commit 7c978e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import pprint
2121

2222
from solidity_parser import parser
2323

24-
sourceUnit = parser.parse_file(sys.argv[1])
24+
sourceUnit = parser.parse_file(sys.argv[1], loc=False) # loc=True -> add location information to ast nodes
2525
pprint.pprint(sourceUnit)
2626
# see output below
2727

‎solidity_parser/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
print("\t\t outline ... print a high level outline of the sourceUnit")
1616
sys.exit(1)
1717

18-
node = parser.parse_file(sys.argv[2])
18+
node = parser.parse_file(sys.argv[2], loc=False)
1919
if sys.argv[1]=="parse":
2020
pprint.pprint(node)
2121
elif sys.argv[1]=="outline":

0 commit comments

Comments
 (0)
Failed to load comments.