public MetadataSymbolReference(
     AbstractAddImportCodeFixProvider <TSimpleNameSyntax> provider,
     SymbolResult <INamespaceOrTypeSymbol> symbolResult, PortableExecutableReference reference)
     : base(provider, symbolResult)
 {
     _reference = reference;
 }
Esempio n. 2
0
 protected Reference(
     AbstractAddImportCodeFixProvider <TSimpleNameSyntax> provider,
     SearchResult searchResult)
 {
     this.provider     = provider;
     this.SearchResult = searchResult;
 }
Esempio n. 3
0
 public SymbolReference(
     AbstractAddImportCodeFixProvider <TSimpleNameSyntax> provider,
     SymbolResult <INamespaceOrTypeSymbol> symbolResult)
     : base(provider, new SearchResult(symbolResult))
 {
     this.SymbolResult = symbolResult;
 }
Esempio n. 4
0
 public AllSymbolsProjectSearchScope(
     AbstractAddImportCodeFixProvider <TSimpleNameSyntax> provider,
     Project project,
     bool exact,
     CancellationToken cancellationToken)
     : base(provider, project, exact, cancellationToken)
 {
 }
 public ProjectSymbolReference(
     AbstractAddImportCodeFixProvider <TSimpleNameSyntax> provider,
     SymbolResult <INamespaceOrTypeSymbol> symbolResult,
     Project project)
     : base(provider, symbolResult)
 {
     _project = project;
 }
Esempio n. 6
0
 public AssemblyReference(
     AbstractAddImportCodeFixProvider <TSimpleNameSyntax> provider,
     SearchResult searchResult,
     ReferenceAssemblyWithTypeResult referenceAssemblyWithType)
     : base(provider, searchResult)
 {
     _referenceAssemblyWithType = referenceAssemblyWithType;
 }
Esempio n. 7
0
 public SourceSymbolsProjectSearchScope(
     AbstractAddImportCodeFixProvider <TSimpleNameSyntax> provider,
     ConcurrentDictionary <Project, AsyncLazy <IAssemblySymbol> > projectToAssembly,
     Project project, bool ignoreCase, CancellationToken cancellationToken)
     : base(provider, project, ignoreCase, cancellationToken)
 {
     _projectToAssembly = projectToAssembly;
 }
 public AssemblyReference(
     AbstractAddImportCodeFixProvider <TSimpleNameSyntax> provider,
     IPackageInstallerService installerService,
     SearchResult searchResult,
     PackageWithTypeResult packageWithType)
     : base(provider, searchResult)
 {
     _packageWithType = packageWithType;
 }
Esempio n. 9
0
 public ProjectSearchScope(
     AbstractAddImportCodeFixProvider <TSimpleNameSyntax> provider,
     Project project,
     bool ignoreCase,
     CancellationToken cancellationToken)
     : base(provider, ignoreCase, cancellationToken)
 {
     _project = project;
 }
Esempio n. 10
0
 public MetadataSymbolsSearchScope(
     AbstractAddImportCodeFixProvider <TSimpleNameSyntax> provider,
     Solution solution,
     IAssemblySymbol assembly,
     PortableExecutableReference metadataReference,
     bool exact,
     CancellationToken cancellationToken)
     : base(provider, exact, cancellationToken)
 {
     _solution          = solution;
     _assembly          = assembly;
     _metadataReference = metadataReference;
 }
Esempio n. 11
0
 public PackageReference(
     AbstractAddImportCodeFixProvider <TSimpleNameSyntax> provider,
     IPackageInstallerService installerService,
     SearchResult searchResult,
     string source,
     string packageName,
     string versionOpt)
     : base(provider, searchResult)
 {
     _installerService = installerService;
     _source           = source;
     _packageName      = packageName;
     _versionOpt       = versionOpt;
 }
            public SymbolReferenceFinder(
                AbstractAddImportCodeFixProvider <TSimpleNameSyntax> owner,
                Document document, SemanticModel semanticModel, Diagnostic diagnostic, SyntaxNode node, CancellationToken cancellationToken)
            {
                _owner         = owner;
                _document      = document;
                _semanticModel = semanticModel;
                _diagnostic    = diagnostic;
                _node          = node;

                _containingType           = semanticModel.GetEnclosingNamedType(node.SpanStart, cancellationToken);
                _containingTypeOrAssembly = _containingType ?? (ISymbol)semanticModel.Compilation.Assembly;
                _namespacesInScope        = owner.GetNamespacesInScope(semanticModel, node, cancellationToken);
                _syntaxFacts = document.Project.LanguageServices.GetService <ISyntaxFactsService>();
            }
Esempio n. 13
0
 protected SearchScope(AbstractAddImportCodeFixProvider <TSimpleNameSyntax> provider, bool exact, CancellationToken cancellationToken)
 {
     this.provider     = provider;
     Exact             = exact;
     CancellationToken = cancellationToken;
 }