The `config_node` property of a `config_parse_v3._Parser` object returns
an ordered dict; what we want for _yaml_dump() to write the barectf 3
YAML tag is a `_ConfigNodeV3` which is (now) the
`config_parse_common.root_node` property.
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
include_dirs: Optional[List[str]], ignore_include_not_found: bool,
indent_space_count: Count) -> str:
config_node = _create_v3_parser(file, with_pkg_include_dir, include_dirs,
- ignore_include_not_found).config_node
+ ignore_include_not_found).root_node
return barectf_config_parse_common._yaml_dump(config_node, indent=indent_space_count,
default_flow_style=False, explicit_start=True,
explicit_end=True)
self._schema_validator = _SchemaValidator({'config/common', f'config/{major_version}'})
self._major_version = major_version
+ @property
+ def root_node(self):
+ return self._root_node
+
@property
def _struct_ft_node_members_prop_name(self) -> str:
if self._major_version == 2: