1 implementation of IImportScope
Microsoft.CodeAnalysis (1)
Compilation\IImportScope.cs (1)
124internal sealed class SimpleImportScope : IImportScope
17 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)
790/// Given a position in the SyntaxTree for this SemanticModel returns the <see cref="IImportScope"/>s at that 792/// <see cref="IImportScope"/> for a deeper description of what information is available for each scope. 794public ImmutableArray<IImportScope> GetImportScopes(int position, CancellationToken cancellationToken = default) 797private protected abstract ImmutableArray<IImportScope> GetImportScopesCore(int position, CancellationToken cancellationToken);
Microsoft.CodeAnalysis.CSharp (2)
Compilation\CSharpSemanticModel.cs (2)
5405private protected sealed override ImmutableArray<IImportScope> GetImportScopesCore(int position, CancellationToken cancellationToken) 5409var builder = ArrayBuilder<IImportScope>.GetInstance();
Microsoft.CodeAnalysis.CSharp.Features (1)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.cs (1)
97foreach (var scope in scopes)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
1184var scope = scopes.Single();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\GetImportScopesTests.cs (1)
19private ImmutableArray<IImportScope> GetImportsScopes(string text)
Microsoft.CodeAnalysis.VisualBasic (4)
Compilation\SemanticModel.vb (4)
3439Private Protected NotOverridable Overrides Function GetImportScopesCore(position As Integer, cancellationToken As CancellationToken) As ImmutableArray(Of IImportScope) 3443Dim importScopes = ArrayBuilder(Of IImportScope).GetInstance() 3448Private Shared Sub AddImportScopes(binder As Binder, scopes As ArrayBuilder(Of IImportScope)) 3499scopes 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)