/// <summary> /// Visits the <paramref name="visitor"/> provided. /// </summary> /// <typeparam name="TResult">The type of value to return for the visitor.</typeparam> /// <typeparam name="TContext">The type of context passed to the visitor.</typeparam> /// <param name="visitor">The <see cref="IIntermediateDeclarationVisitor{TResult, TContext}"/> /// which should receive the <see cref="IntermediateNamespaceDeclaration"/> as a visitor.</param> /// <param name="context">The <typeparamref name="TContext"/> relative to the current /// implementation.</param> public virtual TResult Accept <TResult, TContext>(IIntermediateDeclarationVisitor <TResult, TContext> visitor, TContext context) { return(visitor.Visit(this, context)); }
/// <summary> /// Visits a <see cref="IIntermediateDeclarationVisitor"/>. /// </summary> /// <param name="visitor">The <see cref="IIntermediateDeclarationVisitor"/> to visit.</param> public void Accept(IIntermediateDeclarationVisitor visitor) { visitor.Visit(this); }