function templateAlias(oElement, oWithControl) {
				var sName = oElement.getAttribute("name"),
					oNewValue,
					oOldValue,
					sValue = oElement.getAttribute("value");

				if (sName && sName[0] === ".") {
					sName = sName.slice(1);
				}
				if (!sName || sName.includes(".")) {
					error("Missing proper relative name in ", oElement);
				}

				oNewValue = getObject(sValue);
				if (!oNewValue) {
					error("Invalid value in ", oElement);
				}

				oOldValue = oScope[sName];
				oScope[sName] = oNewValue;

				return liftChildNodes(oElement, oWithControl).then(function () {
					oElement.parentNode.removeChild(oElement);
					oScope[sName] = oOldValue; // no try/finally needed
				});
			}
/**
			 * Processes a <template:alias> instruction.
			 *
			 * @param {Element} oElement
			 *   the <template:alias> XML DOM element
			 * @param {sap.ui.core.util._with} oWithControl
			 *   the "with" control
			 * @returns {sap.ui.base.SyncPromise}
			 *   A sync promise which resolves with <code>undefined</code> as soon as the
			 *   <template:alias> instruction has been fully processed, or is rejected with a
			 *   corresponding error if visiting of child nodes fails.
			 * @throws {Error}
			 *   If the "name" attribute is not a proper relative name or if the "value" attribute
			 *   does not reference an object which is currently in scope
			 */
Processes a  instruction.
@param {Element} oElement
the  XML DOM element
@param {sap.ui.core.util._with} oWithControl
the "with" control
@returns {sap.ui.base.SyncPromise}
A sync promise which resolves with undefined as soon as the
 instruction has been fully processed, or is rejected with a
corresponding error if visiting of child nodes fails.
@throws {Error}
If the "name" attribute is not a proper relative name or if the "value" attribute
does not reference an object which is currently in scope
Processes a instruction . @param { Element } oElement the XML DOM element @param { sap . ui . core . util . _with } oWithControl the " with " control @returns { sap . ui . base . SyncPromise } A sync promise which resolves with undefined as soon as the instruction has been fully processed or is rejected with a corresponding error if visiting of child nodes fails . @throws { Error } If the " name " attribute is not a proper relative name or if the " value " attribute does not reference an object which is currently in scope
function templateAlias(oElement, oWithControl) {
				var sName = oElement.getAttribute("name"),
					oNewValue,
					oOldValue,
					sValue = oElement.getAttribute("value");
				if (sName && sName[0] === ".") {
					sName = sName.slice(1);
				}
				if (!sName || sName.includes(".")) {
					error("Missing proper relative name in ", oElement);
				}
				oNewValue = getObject(sValue);
				if (!oNewValue) {
					error("Invalid value in ", oElement);
				}
				oOldValue = oScope[sName];
				oScope[sName] = oNewValue;
				return liftChildNodes(oElement, oWithControl).then(function () {
					oElement.parentNode.removeChild(oElement);
					oScope[sName] = oOldValue; 
				});
			}
function templateAlias ( oElement , oWithControl ) { var sName = oElement . getAttribute ( "name" ) , oNewValue , oOldValue , sValue = oElement . getAttribute ( "value" ) ; if ( sName && sName [ 0 ] === "." ) { sName = sName . slice ( 1 ) ; } if ( ! sName || sName . includes ( "." ) ) { error ( "Missing proper relative name in " , oElement ) ; } oNewValue = getObject ( sValue ) ; if ( ! oNewValue ) { error ( "Invalid value in " , oElement ) ; } oOldValue = oScope [ sName ] ; oScope [ sName ] = oNewValue ; return liftChildNodes ( oElement , oWithControl ) . then ( function ( ) { oElement . parentNode . removeChild ( oElement ) ; oScope [ sName ] = oOldValue ; } ) ; }
Processes a <template:alias> instruction.
Processes a <template : alias > instruction .
// no try/finally needed