/// <summary> /// Visists the given visitor with the specified solution item. /// </summary> public static bool Accept(ISolutionItemNode solutionItem, ISolutionVisitor visitor) { if (visitor.VisitEnter(solutionItem)) { foreach (var node in solutionItem.Nodes) { if (!node.Accept(visitor)) break; } } return visitor.VisitLeave(solutionItem); }
/// <summary> /// Visists the given visitor with the specified project. /// </summary> public static bool Accept(IProjectNode project, ISolutionVisitor visitor) { if (visitor.VisitEnter(project)) { foreach (var node in project.Nodes) { if (!node.Accept(visitor)) break; } } return visitor.VisitLeave(project); }
/// <summary> /// Visists the given visitor with the specified solution. /// </summary> public static bool Accept(IReferencesNode references, ISolutionVisitor visitor) { if (visitor.VisitEnter(references)) { foreach (var node in references.Nodes) { if (!node.Accept(visitor)) break; } } return visitor.VisitLeave(references); }
/// <summary> /// Visists the given visitor with the specified project. /// </summary> public static bool Accept(IProjectNode project, ISolutionVisitor visitor) { if (visitor.VisitEnter(project)) { foreach (var node in project.Nodes) { if (!node.Accept(visitor)) { break; } } } return(visitor.VisitLeave(project)); }
/// <summary> /// Visists the given visitor with the specified solution item. /// </summary> public static bool Accept(ISolutionItemNode solutionItem, ISolutionVisitor visitor) { if (visitor.VisitEnter(solutionItem)) { foreach (var node in solutionItem.Nodes) { if (!node.Accept(visitor)) { break; } } } return(visitor.VisitLeave(solutionItem)); }
/// <summary> /// Visists the given visitor with the specified custom node. /// </summary> public static bool Accept(ICustomNode node, ISolutionVisitor visitor) { if (visitor.VisitEnter(node)) { foreach (var child in node.Nodes) { if (!child.Accept(visitor)) { break; } } } return(visitor.VisitLeave(node)); }
/// <summary> /// Visists the given visitor with the specified folder. /// </summary> public static bool Accept(IFolderNode folder, ISolutionVisitor visitor) { if (visitor.VisitEnter(folder)) { foreach (var node in folder.Nodes) { if (!node.Accept(visitor)) { break; } } } return(visitor.VisitLeave(folder)); }
/// <summary> /// Visists the given visitor with the specified reference. /// </summary> public static bool Accept(IReferenceNode reference, ISolutionVisitor visitor) { if (visitor.VisitEnter(reference)) { foreach (var node in reference.Nodes) { if (!node.Accept(visitor)) { break; } } } return(visitor.VisitLeave(reference)); }
/// <summary> /// Accepts the specified visitor for traversal. /// </summary> public override bool Accept(ISolutionVisitor visitor) => SolutionVisitable.Accept(this, visitor);
/// <summary> /// Accepts the specified visitor for traversal. /// </summary> public override bool Accept(ISolutionVisitor visitor) { return(SolutionVisitable.Accept(this, visitor)); }
/// <summary> /// Accepts the specified visitor for traversal. /// </summary> /// <returns> /// <see langword="true" /> if the operation should continue with other sibling or child nodes; <see langword="false" /> otherwise. /// </returns> public abstract bool Accept(ISolutionVisitor visitor);
/// <summary> /// Visists the given visitor with the specified custom node. /// </summary> public static bool Accept(ICustomNode node, ISolutionVisitor visitor) { if (visitor.VisitEnter(node)) { foreach (var child in node.Nodes) { if (!child.Accept(visitor)) break; } } return visitor.VisitLeave(node); }
/// <summary> /// Visists the given visitor with the specified folder. /// </summary> public static bool Accept(IFolderNode folder, ISolutionVisitor visitor) { if (visitor.VisitEnter(folder)) { foreach (var node in folder.Nodes) { if (!node.Accept(visitor)) break; } } return visitor.VisitLeave(folder); }
public override bool Accept(ISolutionVisitor visitor) { return(true); }