The OpenD Programming Language

mir.algebraic_alias.transform

Transformation utilities for JSON-like values

Members

Aliases

optionalTransformLeafs
alias optionalTransformLeafs(visitors...) = transformLeafsImpl!(optionalVisit, naryFun!visitors)

Behaves as transformLeafs but doesn't enforce at compile time that all types can be handled by the visiting functions.

transformLeafs
alias transformLeafs(visitors...) = transformLeafsImpl!(visit, naryFun!visitors)

Transforms algebraics leafs recursively in place, ensuring that all leaf types are handled by the visiting functions.

tryTransformLeafs
alias tryTransformLeafs(visitors...) = transformLeafsImpl!(tryVisit, naryFun!visitors)

Behaves as transformLeafs but doesn't enforce at compile time that all types can be handled by the visiting functions.

Templates

transformLeafsImpl
template transformLeafsImpl(alias handler, alias visitor)

See Also

JSON libraries $(MIR_PACKAGE mir-ion) and $(MIR_PACKAGE asdf);

Meta

Authors

Ilia Ki