Esempio n. 1
0
 /// <inheritdoc />
 public override IEnumerable <Node> Childrens()
 {
     ChildrenList.Clear();
     ChildrenList.Add(Target);
     ChildrenList.Add(From);
     return(ChildrenList);
 }
Esempio n. 2
0
 /// <inheritdoc />
 public override IEnumerable <Node> Childrens()
 {
     ChildrenList.Clear();
     ChildrenList.Add(Name);
     ChildrenList.AddRange(Methods);
     return(ChildrenList);
 }
Esempio n. 3
0
 /// <inheritdoc />
 public override IEnumerable <Node> Childrens()
 {
     ChildrenList.Clear();
     ChildrenList.Add(StateType);
     ChildrenList.Add(Initializer);
     return(ChildrenList);
 }
Esempio n. 4
0
        private ChildrenList AllocateChildrenList()
        {
            ChildrenList list = null;

            foreach (ChildrenList auxList in this.childrenListPool)
            {
                if (!auxList.beingUsed)
                {
                    list = auxList;
                    list.Clear();

                    break;
                }
            }

            if (list == null)
            {
                list = new ChildrenList();
                this.childrenListPool.Add(list);
            }

            list.beingUsed = true;

            return(list);
        }
Esempio n. 5
0
 /// <inheritdoc />
 public override IEnumerable <Node> Childrens()
 {
     ChildrenList.Clear();
     ChildrenList.Add(Condition);
     ChildrenList.Add(Statement);
     return(ChildrenList);
 }
 /// <inheritdoc/>
 public override IEnumerable <Node> Childrens()
 {
     ChildrenList.Clear();
     ChildrenList.AddRange(Arguments);
     ChildrenList.Add(Target);
     return(ChildrenList);
 }
Esempio n. 7
0
 /// <inheritdoc />
 public override IEnumerable <Node> Childrens()
 {
     ChildrenList.Clear();
     ChildrenList.Add(Condition);
     ChildrenList.AddRange(Groups);
     return(ChildrenList);
 }
Esempio n. 8
0
 /// <inheritdoc />
 public override IEnumerable <Node> Childrens()
 {
     ChildrenList.Clear();
     ChildrenList.Add(Name);
     ChildrenList.Add(Body);
     return(ChildrenList);
 }
Esempio n. 9
0
 /// <inheritdoc/>
 public override System.Collections.Generic.IEnumerable <Node> Childrens()
 {
     ChildrenList.Clear();
     ChildrenList.Add(Name);
     ChildrenList.Add(Value);
     return(ChildrenList);
 }
Esempio n. 10
0
 /// <inheritdoc />
 public override IEnumerable <Node> Childrens()
 {
     ChildrenList.Clear();
     ChildrenList.Add(Left);
     ChildrenList.Add(Right);
     return(ChildrenList);
 }
Esempio n. 11
0
 /// <inheritdoc />
 public override IEnumerable <Node> Childrens()
 {
     ChildrenList.Clear();
     ChildrenList.AddRange(Cases);
     ChildrenList.Add(Statements);
     return(ChildrenList);
 }
Esempio n. 12
0
 /// <inheritdoc />
 public override IEnumerable <Node> Childrens()
 {
     ChildrenList.Clear();
     ChildrenList.Add(Profile);
     ChildrenList.Add(Function);
     return(ChildrenList);
 }
Esempio n. 13
0
 /// <inheritdoc />
 public override IEnumerable <Node> Childrens()
 {
     ChildrenList.Clear();
     ChildrenList.Add(Name);
     ChildrenList.AddRange(BaseClasses);
     ChildrenList.AddRange(Members);
     return(ChildrenList);
 }
Esempio n. 14
0
 /// <inheritdoc />
 public override IEnumerable <Node> Childrens()
 {
     ChildrenList.Clear();
     ChildrenList.Add(Collection);
     ChildrenList.Add(Variable);
     ChildrenList.Add(Body);
     return(ChildrenList);
 }
Esempio n. 15
0
 /// <inheritdoc />
 public override IEnumerable <Node> Childrens()
 {
     ChildrenList.Clear();
     ChildrenList.AddRange(Attributes);
     ChildrenList.Add(Name);
     ChildrenList.AddRange(Passes);
     return(ChildrenList);
 }
Esempio n. 16
0
 /// <inheritdoc />
 public override IEnumerable <Node> Childrens()
 {
     ChildrenList.Clear();
     ChildrenList.AddRange(BaseClasses);
     ChildrenList.AddRange(GenericParameters);
     ChildrenList.AddRange(ShaderGenerics);
     ChildrenList.AddRange(Members);
     return(ChildrenList);
 }
Esempio n. 17
0
 /// <inheritdoc />
 public override IEnumerable <Node> Childrens()
 {
     ChildrenList.Clear();
     if (SubLiterals != null)
     {
         ChildrenList.AddRange(SubLiterals);
     }
     return(ChildrenList);
 }
Esempio n. 18
0
 /// <inheritdoc />
 public override IEnumerable <Node> Childrens()
 {
     ChildrenList.Clear();
     ChildrenList.Add(Type);
     if (IsGroup)
     {
         ChildrenList.AddRange(SubDeclarators);
     }
     return(ChildrenList);
 }
Esempio n. 19
0
        /// <inheritdoc />
        public override IEnumerable <Node> Childrens()
        {
            ChildrenList.Clear();
            if (Case != null)
            {
                ChildrenList.Add(Case);
            }

            return(ChildrenList);
        }
Esempio n. 20
0
        /// <inheritdoc />
        public override IEnumerable <Node> Childrens()
        {
            ChildrenList.Clear();
            if (Profile != null)
            {
                ChildrenList.Add(Profile);
            }

            ChildrenList.Add(Register);
            return(ChildrenList);
        }
        private void OrderChildren(Func <IEnumerable <TNode>, IEnumerable <TNode> > reorder)
        {
            var reordered = reorder(ChildrenList).ToArray();

            ChildrenList.Clear();
            ChildrenList.AddRange(reordered);

            SetChildrenSiblingReferences();

            OnChildrenReordered();
        }
Esempio n. 22
0
        /// <summary>
        /// Gets the child nodes.
        /// </summary>
        /// <returns>
        /// </returns>
        public override IEnumerable <Node> Childrens()
        {
            ChildrenList.Clear();
            foreach (var parameter in Parameters)
            {
                if (parameter != null)
                {
                    ChildrenList.Add(parameter);
                }
            }

            return(ChildrenList);
        }
Esempio n. 23
0
 /// <inheritdoc />
 public override IEnumerable <Node> Childrens()
 {
     ChildrenList.Clear();
     ChildrenList.AddRange(Attributes);
     ChildrenList.Add(Type);
     if (Name != null)
     {
         ChildrenList.Add(Name);
     }
     if (Register != null)
     {
         ChildrenList.Add(Register);
     }
     ChildrenList.AddRange(Members);
     return(ChildrenList);
 }
Esempio n. 24
0
        /// <inheritdoc />
        public override IEnumerable <Node> Childrens()
        {
            ChildrenList.Clear();
            ChildrenList.Add(ReturnType);
            ChildrenList.Add(Name);
            foreach (var variableDeclarator in Parameters)
            {
                ChildrenList.Add(variableDeclarator);
            }
            if (Qualifiers != Qualifier.None)
            {
                ChildrenList.Add(Qualifiers);
            }

            return(ChildrenList);
        }
Esempio n. 25
0
        /// <inheritdoc/>
        public override IEnumerable <Node> Childrens()
        {
            if (Values.Count == 0)
            {
                return(ChildrenList);
            }

            ChildrenList.Clear();
            foreach (var compositeEnum in Values)
            {
                if (!ReferenceEquals(this, compositeEnum) && !string.Empty.Equals(compositeEnum.Key))
                {
                    ChildrenList.Add(compositeEnum);
                }
            }

            return(ChildrenList);
        }
Esempio n. 26
0
 /// <inheritdoc />
 public override IEnumerable <Node> Childrens()
 {
     ChildrenList.Clear();
     ChildrenList.Add(Type);
     ChildrenList.Add(Name);
     if (Qualifiers != Qualifier.None)
     {
         ChildrenList.Add(Qualifiers);
     }
     if (InitialValue != null)
     {
         ChildrenList.Add(InitialValue);
     }
     if (SubVariables != null)
     {
         ChildrenList.AddRange(SubVariables);
     }
     return(ChildrenList);
 }
Esempio n. 27
0
 public void RemovedAllChild()
 {
     ChildrenList.Clear();
 }
Esempio n. 28
0
 /// <inheritdoc />
 public override IEnumerable <Node> Childrens()
 {
     ChildrenList.Clear();
     ChildrenList.Add(Expression);
     return(ChildrenList);
 }