dformat.js
function setInstanceFromTypeValue(node)
		{
			if(node.type == "undefined")
			{	
				node.instance = undefined;
			}
			else if(node.type === "boolean")
			{
				node.instance = Boolean(node.value);
			}
			else if (node.type === "number")
			{
				node.instance = Number(node.value);
			}
			else if (node.type === "string")
			{
				node.instance = node.value;
			}
			else if (node.type === "symbol")
			{
				node.instance = Symbol(node.value);
			}
			else if(node.type === "function")
			{
				var fn;
				eval("fn = " + node.value);
				node.instance = fn;
			}
			else if(node.type === "null")
			{
				node.instance = null;
			}
			else if(node.type === "date")
			{
				node.instance = new Date(Number(node.value))
			}
			else if(node.type === "array")
			{
				node.instance = [];
			}
			else if(node.type === "empty")
			{
				node.instance = {};
			}
			else 
			{
				/* $lab:coverage:off$ */
				if(node.type !== "object")
					throw new Error("object expected");
				/* $lab:coverage:on$ */
				
				node.instance = {};
			}			

		}
function setInstanceFromTypeValue(node)
		{
			if(node.type == "undefined")
			{	
				node.instance = undefined;
			}
			else if(node.type === "boolean")
			{
				node.instance = Boolean(node.value);
			}
			else if (node.type === "number")
			{
				node.instance = Number(node.value);
			}
			else if (node.type === "string")
			{
				node.instance = node.value;
			}
			else if (node.type === "symbol")
			{
				node.instance = Symbol(node.value);
			}
			else if(node.type === "function")
			{
				var fn;
				eval("fn = " + node.value);
				node.instance = fn;
			}
			else if(node.type === "null")
			{
				node.instance = null;
			}
			else if(node.type === "date")
			{
				node.instance = new Date(Number(node.value))
			}
			else if(node.type === "array")
			{
				node.instance = [];
			}
			else if(node.type === "empty")
			{
				node.instance = {};
			}
			else 
			{
				/* $lab:coverage:off$ */
				if(node.type !== "object")
					throw new Error("object expected");
				/* $lab:coverage:on$ */
				
				node.instance = {};
			}			

		}
function setInstanceFromTypeValue ( node ) { if ( node . type == "undefined" ) { node . instance = undefined ; } else if ( node . type === "boolean" ) { node . instance = Boolean ( node . value ) ; } else if ( node . type === "number" ) { node . instance = Number ( node . value ) ; } else if ( node . type === "string" ) { node . instance = node . value ; } else if ( node . type === "symbol" ) { node . instance = Symbol ( node . value ) ; } else if ( node . type === "function" ) { var fn ; eval ( "fn = " + node . value ) ; node . instance = fn ; } else if ( node . type === "null" ) { node . instance = null ; } else if ( node . type === "date" ) { node . instance = new Date ( Number ( node . value ) ) } else if ( node . type === "array" ) { node . instance = [ ] ; } else if ( node . type === "empty" ) { node . instance = { } ; } else { /* $lab:coverage:off$ */ if ( node . type !== "object" ) throw new Error ( "object expected" ) ; /* $lab:coverage:on$ */ node . instance = { } ; } }
does the reverse of setTypeValue
does the reverse of setTypeValue