1 type derived from CommonCompiler
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCompiler.cs (1)
21internal abstract class CSharpCompiler : CommonCompiler
76 references to CommonCompiler
csc (3)
src\Compilers\CSharp\csc\Program.cs (1)
25return CommonCompiler.Failed;
src\Compilers\Shared\BuildClient.cs (2)
29internal static readonly RunCompilationResult Succeeded = new RunCompilationResult(CommonCompiler.Succeeded); 31internal static readonly RunCompilationResult Failed = new RunCompilationResult(CommonCompiler.Failed);
InteractiveHost.UnitTests (1)
AbstractInteractiveHostTests.cs (1)
87string.Format(CSharpScriptingResources.LogoLine1, CommonCompiler.GetProductVersion(typeof(CSharpReplServiceProvider)))
Microsoft.CodeAnalysis (11)
AdditionalTextFile.cs (2)
20private readonly CommonCompiler _compiler; 24public AdditionalTextFile(CommandLineSourceFile sourceFile, CommonCompiler compiler)
CommandLine\CommandLineArguments.cs (5)
22/// <see cref="CommonCompiler"/>. 196/// <see cref="CommonCompiler.Run"/>. 202/// <see cref="CommonCompiler.Run"/> 208/// <see cref="CommonCompiler.Run"/> 214/// <see cref="CommonCompiler.Run"/>
CommandLine\CommonCompiler.CompilerEmitStreamProvider.cs (2)
23private readonly CommonCompiler _compiler; 28CommonCompiler compiler,
Compilation\Compilation.cs (2)
3008if (!options.EmitMetadataOnly && CommonCompiler.HasUnsuppressedErrors(diagnostics)) 3196if (CommonCompiler.HasUnsuppressableErrors(diagnostics))
Microsoft.CodeAnalysis.CSharp (4)
CommandLine\CSharpCompiler.cs (1)
330return CommonCompiler.TryGetCompilerDiagnosticCode(diagnosticId, "CS", out code);
Compilation\CSharpCompilation.cs (1)
3582if (!hasDeclarationErrors && !CommonCompiler.HasUnsuppressableErrors(methodBodyDiagnosticBag.DiagnosticBag) && filterOpt == null)
Compilation\SyntaxAndDeclarationManager.cs (1)
266CommonCompiler.ToFileReadDiagnostics(messageProvider, e, resolvedFilePath),
Parser\DirectiveParser.cs (1)
335string version = CommonCompiler.GetProductVersion(typeof(CSharpCompiler));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (13)
CommandLineIVTTests.cs (4)
43Assert.Equal(CommonCompiler.Failed, errorCode); 120Assert.Equal(CommonCompiler.Succeeded, errorCode); 199Assert.Equal(CommonCompiler.Failed, errorCode); 284Assert.Equal(CommonCompiler.Failed, errorCode);
CommandLineTests.cs (9)
59private static readonly string s_compilerVersion = CommonCompiler.GetProductVersion(typeof(CommandLineTests)); 7047Assert.Null(CommonCompiler.ExtractShortCommitHash(null)); 7048Assert.Equal("", CommonCompiler.ExtractShortCommitHash("")); 7049Assert.Equal("<", CommonCompiler.ExtractShortCommitHash("<")); 7050Assert.Equal("<developer build>", CommonCompiler.ExtractShortCommitHash("<developer build>")); 7051Assert.Equal("1", CommonCompiler.ExtractShortCommitHash("1")); 7052Assert.Equal("1234567", CommonCompiler.ExtractShortCommitHash("1234567")); 7053Assert.Equal("12345678", CommonCompiler.ExtractShortCommitHash("12345678")); 7054Assert.Equal("12345678", CommonCompiler.ExtractShortCommitHash("123456789"));
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Hosting\CSharpReplServiceProvider.cs (1)
24=> string.Format(CSharpScriptingResources.LogoLine1, CommonCompiler.GetProductVersion(typeof(CSharpReplServiceProvider)));
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
CsiTests.cs (1)
24private static readonly string s_compilerVersion = CommonCompiler.GetProductVersion(typeof(Csi));
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
CommandLineRunnerTests.cs (1)
25private static readonly string s_compilerVersion = CommonCompiler.GetProductVersion(typeof(CSharpInteractiveCompiler));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
LexicalAndXml\PreprocessorTests.cs (1)
4660return CommonCompiler.GetProductVersion(typeof(CSharpCompiler));
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
ThrowingMetadataReferenceResolver.cs (1)
16/// throws on equality checks via <see cref="CommonCompiler.LoggingMetadataFileReferenceResolver" />
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
DeterministicKeyBuilderTests.cs (1)
85private protected static void AssertSyntaxTreePathMap(string? expected, CommonCompiler compiler)
RebuildCommandLineTests.cs (1)
88private void VerifyRoundTrip(CommonCompiler commonCompiler, string peFilePath, string? pdbFilePath = null, CancellationToken cancellationToken = default)
Microsoft.CodeAnalysis.Scripting (8)
Hosting\CommandLine\CommandLineRunner.cs (8)
29CommonCompiler compiler, 48internal CommonCompiler Compiler { get; } 61return CommonCompiler.Failed; 133return CommonCompiler.Failed; 142return CommonCompiler.Succeeded; 197return new CommonCompiler.LoggingSourceFileResolver(arguments.SourcePaths, arguments.BaseDirectory, ImmutableArray<KeyValuePair<string, string>>.Empty, loggerOpt); 213return CommonCompiler.Failed; 323var currentSourceResolver = (CommonCompiler.LoggingSourceFileResolver)options.SourceResolver;
Microsoft.CodeAnalysis.Test.Utilities (5)
CommonCompilerExtensions.cs (1)
18internal static (int Result, string Output) Run(this CommonCompiler compiler, CancellationToken cancellationToken = default)
Diagnostics\DiagnosticExtensions.cs (1)
423internal static string GetExpectedErrorLogHeader(CommonCompiler compiler)
TestableCompiler.cs (3)
44/// Provides an easy to test version of <see cref="CommonCompiler"/>. This uses <see cref="TestableFileSystem"/> 56internal CommonCompiler Compiler { get; } 60internal TestableCompiler(CommonCompiler compiler, TestableFileSystem fileSystem, BuildPaths buildPaths)
Microsoft.CodeAnalysis.UnitTests (3)
CommonSqmUtilitiesTests.cs (3)
24var result = CommonCompiler.TryGetCompilerDiagnosticCode(diagnosticId, "CS", out code); 36var result = CommonCompiler.TryGetCompilerDiagnosticCode(diagnosticId, "CS", out code); 47var result = CommonCompiler.TryGetCompilerDiagnosticCode(diagnosticId, "CS", out code);
vbc (3)
src\Compilers\Shared\BuildClient.cs (2)
29internal static readonly RunCompilationResult Succeeded = new RunCompilationResult(CommonCompiler.Succeeded); 31internal static readonly RunCompilationResult Failed = new RunCompilationResult(CommonCompiler.Failed);
src\Compilers\VisualBasic\vbc\Program.cs (1)
27return CommonCompiler.Failed;
VBCSCompiler (10)
src\Compilers\Server\VBCSCompiler\BuildServerController.cs (5)
43return CommonCompiler.Failed; 126return CommonCompiler.Failed; 134return CommonCompiler.Succeeded; 165return success ? CommonCompiler.Succeeded : CommonCompiler.Failed;
src\Compilers\Server\VBCSCompiler\CompilerRequestHandler.cs (2)
78public bool TryCreateCompiler(in RunRequest request, BuildPaths buildPaths, [NotNullWhen(true)] out CommonCompiler? compiler) 133if (!TryCreateCompiler(request, buildPaths, out CommonCompiler? compiler))
src\Compilers\Server\VBCSCompiler\VBCSCompiler.cs (1)
52return CommonCompiler.Failed;
src\Compilers\Shared\BuildClient.cs (2)
29internal static readonly RunCompilationResult Succeeded = new RunCompilationResult(CommonCompiler.Succeeded); 31internal static readonly RunCompilationResult Failed = new RunCompilationResult(CommonCompiler.Failed);
VBCSCompiler.UnitTests (8)
CompilerServerApiTest.cs (2)
54Assert.Equal(CommonCompiler.Failed, result); 105Assert.Equal(CommonCompiler.Succeeded, result);
CompilerServerTests.cs (1)
200clientDir: Path.GetDirectoryName(typeof(CommonCompiler).Assembly.Location),
TouchedFileLoggingTests.cs (1)
154private static void BuildTouchedFiles(CommonCompiler cmd,
VBCSCompilerServerTests.cs (4)
68Assert.Equal(CommonCompiler.Succeeded, exitCode); 87Assert.Equal(CommonCompiler.Succeeded, exitCode); 129Assert.Equal(CommonCompiler.Failed, exitCode); 181Assert.Equal(CommonCompiler.Succeeded, exitCode);