Example #1
0
 public RoslynDefinitionBucket(
     StreamingFindReferencesPresenter presenter,
     TableDataSourceFindReferencesContext context,
     DefinitionItem definitionItem)
     : base(name: definitionItem.DisplayParts.JoinText() + " " + definitionItem.GetHashCode(),
            sourceTypeIdentifier: context.SourceTypeIdentifier,
            identifier: context.Identifier)
 {
     _presenter     = presenter;
     _context       = context;
     DefinitionItem = definitionItem;
 }
 public RoslynDefinitionBucket(
     StreamingFindReferencesPresenter presenter,
     TableDataSourceFindReferencesContext context,
     DefinitionItem definitionItem)
     : base(name: definitionItem.DisplayParts.JoinText() + " " + definitionItem.GetHashCode(),
            sourceTypeIdentifier: context.SourceTypeIdentifier,
            identifier: context.Identifier)
 {
     _presenter = presenter;
     _context = context;
     DefinitionItem = definitionItem;
 }
        public FindReferencesContext StartSearch()
        {
            this.AssertIsForeground();

            // Get the appropriate window for FAR results to go into.
            var window = _vsFindAllReferencesService.StartSearch(label: null);

            // Make the data source that will feed data into this window.
            var dataSource = new TableDataSourceFindReferencesContext(this, window);

            // And return the data source so that the FindRefs engine can report results
            // which the data source can then create the appropriate presentation items for
            // for the window.
            return dataSource;
        }
        public FindReferencesContext StartSearch()
        {
            this.AssertIsForeground();

            // Get the appropriate window for FAR results to go into.
            var window = _vsFindAllReferencesService.StartSearch(label: null);

            // Make the data source that will feed data into this window.
            var dataSource = new TableDataSourceFindReferencesContext(this, window);

            // And return the data source so that the FindRefs engine can report results
            // which the data source can then create the appropriate presentation items for
            // for the window.
            return(dataSource);
        }
            public DocumentSpanEntry(
                TableDataSourceFindReferencesContext context,
                RoslynDefinitionBucket definitionBucket,
                DocumentSpan documentSpan,
                bool isDefinitionLocation,
                SourceText sourceText,
                ClassifiedSpansAndHighlightSpan classifiedSpans)
                : base(definitionBucket)
            {
                _context = context;

                _documentSpan = documentSpan;
                _isDefinitionLocation = isDefinitionLocation;
                _sourceText = sourceText;
                _classifiedSpans = classifiedSpans;
            }
            public DocumentSpanEntry(
                TableDataSourceFindReferencesContext context,
                RoslynDefinitionBucket definitionBucket,
                DocumentSpan documentSpan,
                bool isDefinitionLocation,
                SourceText sourceText,
                ClassifiedSpansAndHighlightSpan classifiedSpans)
                : base(definitionBucket)
            {
                _context = context;

                _documentSpan         = documentSpan;
                _isDefinitionLocation = isDefinitionLocation;
                _sourceText           = sourceText;
                _classifiedSpans      = classifiedSpans;
            }
            public DocumentLocationEntry(
                TableDataSourceFindReferencesContext context,
                VisualStudioWorkspaceImpl workspace,
                RoslynDefinitionBucket definitionBucket,
                DocumentLocation documentLocation,
                bool isDefinitionLocation,
                Guid projectGuid,
                SourceText sourceText,
                TaggedTextAndHighlightSpan taggedLineParts)
                : base(definitionBucket)
            {
                _context = context;

                _workspace = workspace;
                _documentLocation = documentLocation;
                _isDefinitionLocation = isDefinitionLocation;
                _boxedProjectGuid = projectGuid;
                _sourceText = sourceText;
                _taggedLineParts = taggedLineParts;
            }
            public DocumentLocationEntry(
                TableDataSourceFindReferencesContext context,
                VisualStudioWorkspaceImpl workspace,
                RoslynDefinitionBucket definitionBucket,
                DocumentLocation documentLocation,
                bool isDefinitionLocation,
                Guid projectGuid,
                SourceText sourceText,
                TaggedTextAndHighlightSpan taggedLineParts)
                : base(definitionBucket)
            {
                _context = context;

                _workspace            = workspace;
                _documentLocation     = documentLocation;
                _isDefinitionLocation = isDefinitionLocation;
                _boxedProjectGuid     = projectGuid;
                _sourceText           = sourceText;
                _taggedLineParts      = taggedLineParts;
            }
            public DocumentSpanEntry(
                TableDataSourceFindReferencesContext context,
                VisualStudioWorkspaceImpl workspace,
                RoslynDefinitionBucket definitionBucket,
                DocumentSpan documentSpan,
                bool isDefinitionLocation,
                Guid projectGuid,
                SourceText sourceText,
                ClassifiedSpansAndHighlightSpan classifiedSpans)
                : base(definitionBucket)
            {
                _context = context;

                _workspace            = workspace;
                _documentSpan         = documentSpan;
                _isDefinitionLocation = isDefinitionLocation;
                _boxedProjectGuid     = projectGuid;
                _sourceText           = sourceText;
                _classifiedSpans      = classifiedSpans;
            }
            public DocumentSpanEntry(
                TableDataSourceFindReferencesContext context,
                VisualStudioWorkspaceImpl workspace,
                RoslynDefinitionBucket definitionBucket,
                DocumentSpan documentSpan,
                bool isDefinitionLocation,
                Guid projectGuid,
                SourceText sourceText,
                ClassifiedSpansAndHighlightSpan classifiedSpans)
                : base(definitionBucket)
            {
                _context = context;

                _workspace = workspace;
                _documentSpan = documentSpan;
                _isDefinitionLocation = isDefinitionLocation;
                _boxedProjectGuid = projectGuid;
                _sourceText = sourceText;
                _classifiedSpans = classifiedSpans;
            }
Example #11
0
 public Subscription(TableDataSourceFindReferencesContext dataSource, ITableDataSink sink)
 {
     _dataSource   = dataSource;
     TableDataSink = sink;
 }
 public Subscription(TableDataSourceFindReferencesContext dataSource, ITableDataSink sink)
 {
     _dataSource = dataSource;
     TableDataSink = sink;
 }