mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 02:30:22 -07:00
Comment to clarify why we add one to the line and column recording
This commit is contained in:
parent
79f9fbd50e
commit
2af6314f57
1 changed files with 1 additions and 0 deletions
|
@ -58,6 +58,7 @@ class AnsibleConstructor(Constructor):
|
|||
|
||||
def _node_position_info(self, node):
|
||||
# the line number where the previous token has ended (plus empty lines)
|
||||
# Add one so that the first line is line 1 rather than line 0
|
||||
column = node.start_mark.column + 1
|
||||
line = node.start_mark.line + 1
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue