4 types derived from SourceReferenceResolver
Microsoft.CodeAnalysis (1)
SourceFileResolver.cs (1)
19public class SourceFileResolver : SourceReferenceResolver, IEquatable<SourceFileResolver>
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ScriptTests.cs (1)
1070private class StreamOffsetResolver : SourceReferenceResolver
Microsoft.CodeAnalysis.Rebuild (1)
RebuildSourceReferenceResolver.cs (1)
31internal sealed class RebuildSourceReferenceResolver : SourceReferenceResolver
Microsoft.CodeAnalysis.Test.Utilities (1)
Mocks\TestSourceReferenceResolver.cs (1)
16public sealed class TestSourceReferenceResolver : SourceReferenceResolver
74 references to SourceReferenceResolver
ConfigurationSchemaGenerator (1)
RuntimeSource\Configuration.Binder\Specs\InterceptorInfo.cs (1)
192SourceReferenceResolver? sourceReferenceResolver = invocation.SemanticModel?.Compilation.Options.SourceReferenceResolver;
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
src\Shared\RoslynUtils\SyntaxTreeExtensions.cs (1)
12internal static string GetInterceptorFilePath(this SyntaxTree tree, SourceReferenceResolver? resolver) =>
Microsoft.CodeAnalysis (12)
CommandLine\CommonCompiler.cs (1)
483SourceReferenceResolver resolver,
Compilation\CommonSyntaxAndDeclarationManager.cs (2)
13internal readonly SourceReferenceResolver Resolver; 20SourceReferenceResolver resolver,
Compilation\CompilationOptions.cs (4)
223public SourceReferenceResolver? SourceReferenceResolver { get; protected set; } 289SourceReferenceResolver? sourceReferenceResolver, 461public CompilationOptions WithSourceReferenceResolver(SourceReferenceResolver? resolver) 535protected abstract CompilationOptions CommonWithSourceReferenceResolver(SourceReferenceResolver? resolver);
Emit\DebugDocumentsBuilder.cs (2)
22private readonly SourceReferenceResolver? _resolver; 24public DebugDocumentsBuilder(SourceReferenceResolver? resolver, bool isDocumentNameCaseSensitive)
Syntax\SyntaxTree.cs (3)
42/// <see cref="SourceReferenceResolver"/>, <see cref="XmlReferenceResolver"/> and <see cref="MetadataReferenceResolver"/> 285internal string GetDisplayPath(TextSpan span, SourceReferenceResolver? resolver) 300internal string GetNormalizedPath(SourceReferenceResolver? resolver)
Microsoft.CodeAnalysis.CSharp (18)
CommandLine\CSharpCompiler.cs (1)
346SourceReferenceResolver resolver,
Compilation\CSharpCompilation.cs (1)
1071var resolver = Options.SourceReferenceResolver;
Compilation\SyntaxAndDeclarationManager.cs (4)
30SourceReferenceResolver resolver, 52SourceReferenceResolver resolver, 157SourceReferenceResolver resolver, 192SourceReferenceResolver resolver,
CSharpCompilationOptions.cs (9)
69SourceReferenceResolver? sourceReferenceResolver = null, 119SourceReferenceResolver? sourceReferenceResolver, 164SourceReferenceResolver? sourceReferenceResolver, 208SourceReferenceResolver? sourceReferenceResolver, 572public new CSharpCompilationOptions WithSourceReferenceResolver(SourceReferenceResolver? resolver) 641protected override CompilationOptions CommonWithSourceReferenceResolver(SourceReferenceResolver? resolver) => 835SourceReferenceResolver? sourceReferenceResolver, 873SourceReferenceResolver? sourceReferenceResolver, 918SourceReferenceResolver? sourceReferenceResolver,
Symbols\FileIdentifier.cs (1)
92public static FileIdentifier Create(SyntaxTree syntaxTree, SourceReferenceResolver? resolver)
Utilities\InterceptableLocation.cs (2)
56private readonly SourceReferenceResolver? _resolver; 62internal InterceptableLocation1(ImmutableArray<byte> checksum, string path, SourceReferenceResolver? resolver, int position, int lineNumberOneIndexed, int characterNumberOneIndexed)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
Interactive\CSharpInteractiveEvaluatorLanguageInfoProvider.cs (1)
35public override CompilationOptions GetSubmissionCompilationOptions(string name, MetadataReferenceResolver metadataReferenceResolver, SourceReferenceResolver sourceReferenceResolver, ImmutableArray<string> imports)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\GotoTest.cs (1)
1127var resolver = TestSourceReferenceResolver.Create(KeyValuePairUtil.Create("a.csx", sourceA));
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (7)
ScriptTests.cs (7)
649var resolver = TestSourceReferenceResolver.Create( 667var resolver = TestSourceReferenceResolver.Create( 690var resolver = TestSourceReferenceResolver.Create( 713var resolver = TestSourceReferenceResolver.Create( 748var resolver = TestSourceReferenceResolver.Create( 783var resolver = TestSourceReferenceResolver.Create( 832var resolver = TestSourceReferenceResolver.Create(
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\InteractiveUsingTests.cs (3)
358var resolver = TestSourceReferenceResolver.Create(new Dictionary<string, string> 429var resolver = TestSourceReferenceResolver.Create(new Dictionary<string, string> 479var resolver = TestSourceReferenceResolver.Create(new Dictionary<string, string>
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Compilation\CompilationAPITests.cs (1)
3359var resolver = TestSourceReferenceResolver.Create(
Compilation\CSharpCompilationOptionsTests.cs (1)
405SourceReferenceResolver sourceReferenceResolver = new SourceFileResolver(ImmutableArray<string>.Empty, null);
Compilation\LoadDirectiveTests.cs (3)
49var resolver = TestSourceReferenceResolver.Create( 75var resolver = TestSourceReferenceResolver.Create( 155var resolver = TestSourceReferenceResolver.Create(KeyValuePairUtil.Create("a.csx", code));
Microsoft.CodeAnalysis.EditorFeatures (2)
Interactive\InteractiveEvaluatorLanguageInfoProvider.cs (1)
13public abstract CompilationOptions GetSubmissionCompilationOptions(string name, MetadataReferenceResolver metadataReferenceResolver, SourceReferenceResolver sourceReferenceResolver, ImmutableArray<string> imports);
Interactive\InteractiveSession.cs (1)
394private static SourceReferenceResolver CreateSourceReferenceResolver(ImmutableArray<string> searchPaths, string baseDirectory)
Microsoft.CodeAnalysis.InteractiveHost (2)
Interactive\Core\InteractiveHost.Service.cs (2)
187private SourceReferenceResolver CreateSourceReferenceResolver(ImmutableArray<string> searchPaths, string baseDirectory) 548var sourceResolver = CreateSourceReferenceResolver(sourcePaths, rspDirectory);
Microsoft.CodeAnalysis.Rebuild (1)
RebuildSourceReferenceResolver.cs (1)
13/// <see cref="SourceReferenceResolver"/>. However the usage of #line in the program
Microsoft.CodeAnalysis.Scripting (6)
Hosting\CommandLine\CommandLineRunner.cs (2)
157var sourceResolver = GetSourceReferenceResolver(arguments, touchedFilesLoggerOpt); 197internal static SourceReferenceResolver GetSourceReferenceResolver(CommandLineArguments arguments, TouchedFileLogger? loggerOpt)
ScriptOptions.cs (4)
96/// <see cref="SourceReferenceResolver"/> to be used to resolve source of scripts referenced via #load directive. 98public SourceReferenceResolver SourceResolver { get; private set; } 150SourceReferenceResolver sourceResolver, 316public ScriptOptions WithSourceResolver(SourceReferenceResolver resolver)
Microsoft.CodeAnalysis.Test.Utilities (4)
Mocks\TestSourceReferenceResolver.cs (4)
18public static readonly SourceReferenceResolver Default = new TestSourceReferenceResolver(sources: null); 20public static SourceReferenceResolver Create(params KeyValuePair<string, string>[] sources) 25public static SourceReferenceResolver Create(params KeyValuePair<string, object>[] sources) 30public static SourceReferenceResolver Create(Dictionary<string, string> sources = null)
Microsoft.CodeAnalysis.VisualBasic (9)
CommandLine\VisualBasicCompiler.vb (1)
269resolver As SourceReferenceResolver,
VisualBasicCompilationOptions.vb (8)
93Optional sourceReferenceResolver As SourceReferenceResolver = Nothing, 170sourceReferenceResolver As SourceReferenceResolver, 242sourceReferenceResolver As SourceReferenceResolver, 941Public Shadows Function WithSourceReferenceResolver(resolver As SourceReferenceResolver) As VisualBasicCompilationOptions 1007Protected Overrides Function CommonWithSourceReferenceResolver(resolver As SourceReferenceResolver) As CompilationOptions 1169sourceReferenceResolver As SourceReferenceResolver, 1233sourceReferenceResolver As SourceReferenceResolver, 1300Optional sourceReferenceResolver As SourceReferenceResolver = Nothing,
Microsoft.CodeAnalysis.Workspaces (1)
Serialization\AbstractOptionsSerializationService.cs (1)
98SourceReferenceResolver sourceReferenceResolver,