コード例 #1
0
ファイル: PersistentSpan.cs プロジェクト: zcf7822/monodevelop
        internal PersistentSpan(ITextDocument document, SnapshotSpan span, SpanTrackingMode trackingMode, PersistentSpanFactory factory)
        {
            //Arguments verified in factory
            _document = document;

            _span         = span.Snapshot.CreateTrackingSpan(span, trackingMode);
            _trackingMode = trackingMode;

            _factory = factory;
        }
コード例 #2
0
        internal PersistentSpanSet(FileNameKey filePath, ITextDocument document, PersistentSpanFactory factory)
        {
            this.FileKey  = filePath;
            this.Document = document;
            this.Factory  = factory;

            if (document != null)
            {
                document.FileActionOccurred += this.OnFileActionOccurred;
            }
        }
コード例 #3
0
ファイル: PersistentSpan.cs プロジェクト: zcf7822/monodevelop
        internal PersistentSpan(string filePath, Span span, SpanTrackingMode trackingMode, PersistentSpanFactory factory)
        {
            //Arguments verified in factory
            _filePath = filePath;

            _useLineIndex    = false;
            _nonTrackingSpan = span;

            _trackingMode = trackingMode;

            _factory = factory;
        }
コード例 #4
0
ファイル: PersistentSpan.cs プロジェクト: zcf7822/monodevelop
        internal PersistentSpan(string filePath, int startLine, int startIndex, int endLine, int endIndex, SpanTrackingMode trackingMode, PersistentSpanFactory factory)
        {
            //Arguments verified in factory
            _filePath = filePath;

            _useLineIndex = true;
            _startLine    = startLine;
            _startIndex   = startIndex;
            _endLine      = endLine;
            _endIndex     = endIndex;

            _trackingMode = trackingMode;

            _factory = factory;
        }