We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d83a8e3 commit 496caafCopy full SHA for 496caaf
luaparser/astnodes.py
@@ -86,7 +86,7 @@ def stop_char(self) -> Optional[int]:
86
@property
87
def line(self) -> Optional[int]:
88
"""Line number."""
89
- return self._first_token.start if self._first_token else None
+ return self._first_token.line if self._first_token else None
90
91
def to_json(self) -> any:
92
return {
0 commit comments