Esempio n. 1
0
 /// <summary>
 /// Creates a new HighlightedLine instance.
 /// </summary>
 public HighlightedLine(IDocument document, IDocumentLine documentLine)
 {
     //if (!document.Lines.Contains(documentLine))
     //	throw new ArgumentException("Line is null or not part of document");
     Document     = document ?? throw new ArgumentNullException(nameof(document));
     DocumentLine = documentLine;
     Sections     = new NullSafeCollection <HighlightedSection>();
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a new HighlightedLine instance.
 /// </summary>
 public HighlightedLine(TextDocument document, DocumentLine documentLine)
 {
     if (document == null)
     {
         throw new ArgumentNullException(nameof(document));
     }
     if (!document.Lines.Contains(documentLine))
     {
         throw new ArgumentException("Line is null or not part of document");
     }
     Document     = document;
     DocumentLine = documentLine;
     Sections     = new NullSafeCollection <HighlightedSection>();
 }
Esempio n. 3
0
 /// <summary>
 /// Creates a new XshdSyntaxDefinition object.
 /// </summary>
 public XshdSyntaxDefinition()
 {
     Elements   = new NullSafeCollection <XshdElement>();
     Extensions = new NullSafeCollection <string>();
 }
Esempio n. 4
0
 /// <summary>
 /// Creates a new RuleSet instance.
 /// </summary>
 public HighlightingRuleSet()
 {
     Spans = new NullSafeCollection <HighlightingSpan>();
     Rules = new NullSafeCollection <HighlightingRule>();
 }
Esempio n. 5
0
 /// <summary>
 /// Creates a new RuleSet instance.
 /// </summary>
 public HighlightingRuleSet()
 {
     Spans = new NullSafeCollection<HighlightingSpan>();
     Rules = new NullSafeCollection<HighlightingRule>();
 }
Esempio n. 6
0
 /// <summary>
 /// Creates a new XshdSyntaxDefinition object.
 /// </summary>
 public XshdSyntaxDefinition()
 {
     Elements = new NullSafeCollection<XshdElement>();
     Extensions = new NullSafeCollection<string>();
 }