1 implementation of IImportScope
Microsoft.CodeAnalysis (1)
Compilation\IImportScope.cs (1)
124internal sealed class SimpleImportScope : IImportScope
18 references to IImportScope
Microsoft.CodeAnalysis (7)
Compilation\IImportScope.cs (3)
25/// In C# there will be an <see cref="IImportScope"/> for every containing namespace-declarations that include any 26/// import directives. There will also be an <see cref="IImportScope"/> for the containing compilation-unit if it 30/// In Visual Basic there will commonly be one or two <see cref="IImportScope"/>s returned for any position. This will
Compilation\SemanticModel.cs (4)
777/// Given a position in the SyntaxTree for this SemanticModel returns the <see cref="IImportScope"/>s at that 779/// <see cref="IImportScope"/> for a deeper description of what information is available for each scope. 781public ImmutableArray<IImportScope> GetImportScopes(int position, CancellationToken cancellationToken = default) 784private protected abstract ImmutableArray<IImportScope> GetImportScopesCore(int position, CancellationToken cancellationToken);
Microsoft.CodeAnalysis.CSharp (2)
Compilation\CSharpSemanticModel.cs (2)
5314private protected sealed override ImmutableArray<IImportScope> GetImportScopesCore(int position, CancellationToken cancellationToken) 5318var builder = ArrayBuilder<IImportScope>.GetInstance();
Microsoft.CodeAnalysis.CSharp.Features (1)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.cs (1)
98foreach (var scope in scopes)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
1183var scope = scopes.Single();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\GetImportScopesTests.cs (1)
19private ImmutableArray<IImportScope> GetImportsScopes(string text)
Microsoft.CodeAnalysis.Features (1)
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
178var lastScope = scopes.LastOrDefault();
Microsoft.CodeAnalysis.VisualBasic (4)
Compilation\SemanticModel.vb (4)
3435Private Protected NotOverridable Overrides Function GetImportScopesCore(position As Integer, cancellationToken As CancellationToken) As ImmutableArray(Of IImportScope) 3439Dim importScopes = ArrayBuilder(Of IImportScope).GetInstance() 3444Private Shared Sub AddImportScopes(binder As Binder, scopes As ArrayBuilder(Of IImportScope)) 3495scopes As ArrayBuilder(Of IImportScope))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Compilation\GetImportScopesTests.vb (1)
19Private Shared Function GetImportScopes(text As String) As ImmutableArray(Of IImportScope)