void ParseDefs(XElement elem) { try { foreach (var scriptElem in elem.Elements("script")) { this.jsEngine.Execute(scriptElem.Value); } } catch (Exception exc) { throw new BinariexException(exc, "reading script"); } foreach (var codeElem in elem.Elements("code")) { var name = GetAttr(codeElem, "name"); var codeObj = UserCode.Create(codeElem, this.forward, this.jsEngine); this.codeMap.Add(name, codeObj); } }