public RoslynRegionTag(
     AbstractStructureTaggerProvider <IBlockTag2> provider,
     IBlockTag2 parent,
     ITextSnapshot snapshot,
     BlockSpan outliningSpan) :
     base(provider, snapshot, outliningSpan)
 {
     Parent        = parent;
     Level         = parent == null ? 0 : parent.Level + 1;
     Span          = outliningSpan.TextSpan.ToSnapshotSpan(snapshot);
     StatementSpan = outliningSpan.HintSpan.ToSnapshotSpan(snapshot);
 }
Example #2
0
 public BlockTag2(SnapshotSpan span, SnapshotSpan statementSpan, IBlockTag2 parent, string type, bool isCollapsible, bool isDefaultCollapsed, bool isImplementation, object collapsedForm, object collapsedHintForm)
 {
     this.Span               = span;
     this.Level              = (parent == null) ? 0 : (parent.Level + 1);
     this.StatementSpan      = statementSpan;
     this.Parent             = parent;
     this.Type               = type;
     this.IsCollapsible      = isCollapsible;
     this.IsDefaultCollapsed = isDefaultCollapsed;
     this.IsImplementation   = isImplementation;
     this.CollapsedForm      = collapsedForm;
     this.CollapsedHintForm  = collapsedHintForm;
 }