diff options
author | Benjamin Schubert <contact@benschubert.me> | 2019-06-10 07:51:57 +0100 |
---|---|---|
committer | Benjamin Schubert <ben.c.schubert@gmail.com> | 2019-06-28 12:22:09 +0100 |
commit | f6034c571522eb4b06a8b160b61e0a6a055d3e3c (patch) | |
tree | 9f138c7ce0270d7962f598e5e65d78edb1b4202d /tests/format/option-os | |
parent | dc2d778ddec1a0ac0908eebbe75a5eb543cbec73 (diff) | |
download | buildstream-f6034c571522eb4b06a8b160b61e0a6a055d3e3c.tar.gz |
_yaml: Add 'as_str()' on ScalarNode and 'get_scalar()' on MappingNode
- 'get_scalar()' allows retrieving a scalar node from a mapping.
- 'as_str()' casts a ScalarNode into a string (thus removing the node
information).
Both together, those replace 'node_get(mapping, key, type=str)' but
also allow retrieving the 'Node' itself, which will allow in the future
lazier provenance computation.
Diffstat (limited to 'tests/format/option-os')
0 files changed, 0 insertions, 0 deletions