SymbolScannerBase.ScanSymbolsAsync(TextReader, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
perform a symbol scanning on a file content
protected:
abstract System::Threading::Tasks::Task<System::Collections::Generic::IReadOnlyCollection<Microsoft::VisualStudio::Workspace::Indexing::SymbolDefinition ^> ^> ^ ScanSymbolsAsync(System::IO::TextReader ^ sourceFileContent, System::Threading::CancellationToken cancellationToken);
protected abstract System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.Indexing.SymbolDefinition>> ScanSymbolsAsync (System.IO.TextReader sourceFileContent, System.Threading.CancellationToken cancellationToken);
abstract member ScanSymbolsAsync : System.IO.TextReader * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.Indexing.SymbolDefinition>>
Protected MustOverride Function ScanSymbolsAsync (sourceFileContent As TextReader, cancellationToken As CancellationToken) As Task(Of IReadOnlyCollection(Of SymbolDefinition))
Parameters
- sourceFileContent
- TextReader
the content of source file
- cancellationToken
- CancellationToken
a cancellation token
Returns
Symbols found during scanning