//public Object[] getValues() //{ // List<Object> output = new List<object>(); // foreach (codeLineToken tk in children.items) // { // tk. // } // return output.ToArray(); //} public void deployCode(codeSourceElement subEl) { Int32 i = 0; foreach (String tkn in subEl.tokens) { codeLineToken ctk = children.getElement <codeLineToken>(i); if (ctk != null) { ctk.setValue(tkn); //ctk. } i++; } }
/// <summary> /// Populates content using declaration data and syntax /// </summary> /// <param name="syntax"></param> public void deployDeclaration(syntaxDeclaration syntax) { if (declaration != null) { foreach (var tn in declaration.tokens) { if (!children.hasElement(tn.name)) { codeLineToken tk = new codeLineToken(tn.name, tn); children.Add(tk); tk.deployDeclaration(syntax); } else { } } } }