Пример #1
0
        public Heritachy(HeritachyType hiHeritachyType)
        {
            HeritachyType = hiHeritachyType;
            var tmp = hiHeritachyType;

            while (tmp.Children != null)
            {
                tmp = tmp.Children;
            }
            main = (object)tmp.Scop as T;
        }
Пример #2
0
        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);
        }
Пример #3
0
 public Heritachy(HeritachyType heritachyType, T main = null)
 {
     this.main     = main;
     HeritachyType = heritachyType;
 }