public Heritachy(HeritachyType hiHeritachyType) { HeritachyType = hiHeritachyType; var tmp = hiHeritachyType; while (tmp.Children != null) { tmp = tmp.Children; } main = (object)tmp.Scop as T; }
private static HeritachyType CopyTypes(HeritachyType firstHeritachy, IList <Tree> children) { HeritachyType temp; var tmp = temp = firstHeritachy; foreach (var t in children) { if (tmp == null) { return(null); } if ((t.Type = tmp.Type) != null) { t.Compiled = true; } tmp = (temp = tmp).Children; } return(temp); }
public Heritachy(HeritachyType heritachyType, T main = null) { this.main = main; HeritachyType = heritachyType; }