Commit Graph

5 Commits (2cddb093f5b245474514c2137684d67a37fde1e7)

Author SHA1 Message Date
Toshio Kuratomi 2cddb093f5 Add AnsibleList for keeping track of line numbers in lists parsed from yaml 11 years ago
Toshio Kuratomi e697de6076 Move AnsibleBaseBaseYAMLObject's position_info into a property 11 years ago
Toshio Kuratomi 05f1bed12b Use the node's start_mark to determine line and column.
* Elminates a lot of logic in the AnsibleComposer class.
* Update tests with new column offsets.  The rule should now be
  consistently: Column is the start of the entry's value (so for
  strings, the first non-space after the entry beginning, for dicts, the
  first character of the first key)
11 years ago
Toshio Kuratomi b152275a36 Test line numbers and "fix" a bug in the scalar line counting 11 years ago
Toshio Kuratomi c41b917162 Add a yaml constructor for unicode strings:
* Changes AnsibleConstructor so that only unicode strings are returned
  (no str type)
* Tracks line, column numbers for strings
* Adds unittests for AnsibleLoader (generic for all the yaml parsing)
11 years ago