schema-salad-d ~master (2021-11-30T07:56:22Z)
Home
Dub
Repo
Assign_.Trans
salad
meta
Assign_
Undocumented in source.
enum
Trans
;
enum
Trans
;
template
Assign_
(string node, string field, T, bool typeDSL = false, idMap idMap_ = idMap.init)
static if
(
!isSomeString!T && isArray!T
)
static if
(!(
idMap_.subject.empty
))
static if
(!(
idMap_.predicate.empty
))
enum
Trans
=
format
!
q"EOS Node a_; a_.add("%1$s", a.key); if (a.value.type == NodeType.mapping && "%2$s" in a.value) { foreach(kv; a.value.mapping) { a_.add(kv.key, kv.value); } } else { a_.add("%2$s", a.value); } return %3$s; EOS"
(
idMap_.subject
,
idMap_.predicate
,
ctorStr
!(
ElementType
!
T
)(
"a_"
))
;
Meta
Source
See Source File
salad
meta
Assign_
manifest constants
AssignBase
Assign_
Trans