toEObject
fun <T : Node> Result<T>.toEObject(resource: Resource, kolasuToEMFMapping: KolasuToEMFMapping = KolasuToEMFMapping()): EObject
fun Node.toEObject(eResource: Resource, mapping: KolasuToEMFMapping = KolasuToEMFMapping()): EObject
Translates this node – and, recursively, its descendants – into an EObject (EMF/Ecore representation).
The classes of the node are resolved against the provided Resource. That is, the resource must contain:
every EPackage containing the definitions of the node classes in the tree.