// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; using System.Collections.Generic; using ICSharpCode.AvalonEdit.Utils; namespace ICSharpCode.AvalonEdit.Highlighting.Xshd { /// /// A <SyntaxDefinition> element. /// [Serializable] public class XshdSyntaxDefinition { /// /// Creates a new XshdSyntaxDefinition object. /// public XshdSyntaxDefinition() { this.Elements = new NullSafeCollection(); this.Extensions = new NullSafeCollection(); } /// /// Gets/sets the definition name /// public string Name { get; set; } /// /// Gets the associated extensions. /// public IList Extensions { get; private set; } /// /// Gets the collection of elements. /// public IList Elements { get; private set; } /// /// Applies the visitor to all elements. /// public void AcceptElements(IXshdVisitor visitor) { foreach (XshdElement element in Elements) { element.AcceptVisitor(visitor); } } } }