diff options
author | Alberto Sartori <alberto.sartori@huawei.com> | 2022-03-30 12:42:20 +0200 |
---|---|---|
committer | Alberto Sartori <alberto.sartori@huawei.com> | 2022-03-30 14:31:50 +0200 |
commit | 667017a21482ddbe2bbe4ba056b8c3455e6b3151 (patch) | |
tree | a1179780e9bcc660b05eecd5876a674e4a211aa2 /doc/concepts/doc-strings.org | |
parent | 51cbf8f11f15062f23317d676364ca690b1edc92 (diff) | |
download | justbuild-667017a21482ddbe2bbe4ba056b8c3455e6b3151.tar.gz |
Eliminate duplicated code in ParseEntityName{FromJson,FromExpression}
This patch introduces a templated ParseEntityName which can accept a
json or ExpressionPtr. Internally, performs a proper dispatch on these
cases
- isString
- isList
- size == 2
- size >= 3
A test is added for checking the proper handling of an empty list
Diffstat (limited to 'doc/concepts/doc-strings.org')
0 files changed, 0 insertions, 0 deletions