/// <inheritdoc /> public override IEnumerable <Node> Childrens() { ChildrenList.Clear(); ChildrenList.Add(Target); ChildrenList.Add(From); return(ChildrenList); }
/// <inheritdoc /> public override IEnumerable <Node> Childrens() { ChildrenList.Clear(); ChildrenList.Add(Name); ChildrenList.AddRange(Methods); return(ChildrenList); }
/// <inheritdoc /> public override IEnumerable <Node> Childrens() { ChildrenList.Clear(); ChildrenList.Add(StateType); ChildrenList.Add(Initializer); return(ChildrenList); }
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); }
/// <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); }
/// <inheritdoc /> public override IEnumerable <Node> Childrens() { ChildrenList.Clear(); ChildrenList.Add(Condition); ChildrenList.AddRange(Groups); return(ChildrenList); }
/// <inheritdoc /> public override IEnumerable <Node> Childrens() { ChildrenList.Clear(); ChildrenList.Add(Name); ChildrenList.Add(Body); return(ChildrenList); }
/// <inheritdoc/> public override System.Collections.Generic.IEnumerable <Node> Childrens() { ChildrenList.Clear(); ChildrenList.Add(Name); ChildrenList.Add(Value); return(ChildrenList); }
/// <inheritdoc /> public override IEnumerable <Node> Childrens() { ChildrenList.Clear(); ChildrenList.Add(Left); ChildrenList.Add(Right); return(ChildrenList); }
/// <inheritdoc /> public override IEnumerable <Node> Childrens() { ChildrenList.Clear(); ChildrenList.AddRange(Cases); ChildrenList.Add(Statements); return(ChildrenList); }
/// <inheritdoc /> public override IEnumerable <Node> Childrens() { ChildrenList.Clear(); ChildrenList.Add(Profile); ChildrenList.Add(Function); return(ChildrenList); }
/// <inheritdoc /> public override IEnumerable <Node> Childrens() { ChildrenList.Clear(); ChildrenList.Add(Name); ChildrenList.AddRange(BaseClasses); ChildrenList.AddRange(Members); return(ChildrenList); }
/// <inheritdoc /> public override IEnumerable <Node> Childrens() { ChildrenList.Clear(); ChildrenList.Add(Collection); ChildrenList.Add(Variable); ChildrenList.Add(Body); return(ChildrenList); }
/// <inheritdoc /> public override IEnumerable <Node> Childrens() { ChildrenList.Clear(); ChildrenList.AddRange(Attributes); ChildrenList.Add(Name); ChildrenList.AddRange(Passes); return(ChildrenList); }
/// <inheritdoc /> public override IEnumerable <Node> Childrens() { ChildrenList.Clear(); ChildrenList.AddRange(BaseClasses); ChildrenList.AddRange(GenericParameters); ChildrenList.AddRange(ShaderGenerics); ChildrenList.AddRange(Members); return(ChildrenList); }
/// <inheritdoc /> public override IEnumerable <Node> Childrens() { ChildrenList.Clear(); if (SubLiterals != null) { ChildrenList.AddRange(SubLiterals); } return(ChildrenList); }
/// <inheritdoc /> public override IEnumerable <Node> Childrens() { ChildrenList.Clear(); ChildrenList.Add(Type); if (IsGroup) { ChildrenList.AddRange(SubDeclarators); } return(ChildrenList); }
/// <inheritdoc /> public override IEnumerable <Node> Childrens() { ChildrenList.Clear(); if (Case != null) { ChildrenList.Add(Case); } return(ChildrenList); }
/// <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(); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
public void RemovedAllChild() { ChildrenList.Clear(); }
/// <inheritdoc /> public override IEnumerable <Node> Childrens() { ChildrenList.Clear(); ChildrenList.Add(Expression); return(ChildrenList); }