2 types derived from CommonCompiler
Microsoft.CodeAnalysis.CSharp (1)
CommandLine\CSharpCompiler.cs (1)
21internal abstract class CSharpCompiler : CommonCompiler
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCompiler.vb (1)
15Inherits CommonCompiler
1 instantiation of CommonCompiler
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCompiler.vb (1)
24MyBase.New(parser, responseFile, args, buildPaths, additionalReferenceDirectories, analyzerLoader, driverCache, fileSystem)
104 references to CommonCompiler
csc (3)
BuildClient.cs (2)
31internal static readonly RunCompilationResult Succeeded = new RunCompilationResult(CommonCompiler.Succeeded); 33internal static readonly RunCompilationResult Failed = new RunCompilationResult(CommonCompiler.Failed);
Program.cs (1)
27return CommonCompiler.Failed;
InteractiveHost.UnitTests (1)
AbstractInteractiveHostTests.cs (1)
88expectedOutput.Add(string.Format(CSharpScriptingResources.LogoLine1, CommonCompiler.GetProductVersion(typeof(CSharpReplServiceProvider))));
Microsoft.CodeAnalysis (11)
AdditionalTextFile.cs (2)
19private readonly CommonCompiler _compiler; 23public AdditionalTextFile(CommandLineSourceFile sourceFile, CommonCompiler compiler)
CommandLine\CommandLineArguments.cs (5)
22/// <see cref="CommonCompiler"/>. 191/// <see cref="CommonCompiler.Run"/>. 197/// <see cref="CommonCompiler.Run"/> 203/// <see cref="CommonCompiler.Run"/> 209/// <see cref="CommonCompiler.Run"/>
CommandLine\CommonCompiler.CompilerEmitStreamProvider.cs (2)
22private readonly CommonCompiler _compiler; 27CommonCompiler compiler,
Compilation\Compilation.cs (2)
2955if (!options.EmitMetadataOnly && CommonCompiler.HasUnsuppressedErrors(diagnostics)) 3124if (CommonCompiler.HasUnsuppressableErrors(diagnostics))
Microsoft.CodeAnalysis.CSharp (4)
CommandLine\CSharpCompiler.cs (1)
330return CommonCompiler.TryGetCompilerDiagnosticCode(diagnosticId, "CS", out code);
Compilation\CSharpCompilation.cs (1)
3258if (!hasDeclarationErrors && !CommonCompiler.HasUnsuppressableErrors(methodBodyDiagnosticBag))
Compilation\SyntaxAndDeclarationManager.cs (1)
244CommonCompiler.ToFileReadDiagnostics(messageProvider, e, resolvedFilePath),
Parser\DirectiveParser.cs (1)
330string version = CommonCompiler.GetProductVersion(typeof(CSharpCompiler));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (19)
CommandLineTests.cs (9)
59private static readonly string s_compilerVersion = CommonCompiler.GetProductVersion(typeof(CommandLineTests)); 6837Assert.Null(CommonCompiler.ExtractShortCommitHash(null)); 6838Assert.Equal("", CommonCompiler.ExtractShortCommitHash("")); 6839Assert.Equal("<", CommonCompiler.ExtractShortCommitHash("<")); 6840Assert.Equal("<developer build>", CommonCompiler.ExtractShortCommitHash("<developer build>")); 6841Assert.Equal("1", CommonCompiler.ExtractShortCommitHash("1")); 6842Assert.Equal("1234567", CommonCompiler.ExtractShortCommitHash("1234567")); 6843Assert.Equal("12345678", CommonCompiler.ExtractShortCommitHash("12345678")); 6844Assert.Equal("12345678", CommonCompiler.ExtractShortCommitHash("123456789"));
SarifErrorLoggerTests.cs (3)
23internal abstract string GetExpectedOutputForNoDiagnostics(CommonCompiler cmd); 24internal abstract string GetExpectedOutputForSimpleCompilerDiagnostics(CommonCompiler cmd, string sourceFile); 25internal abstract string GetExpectedOutputForSimpleCompilerDiagnosticsSuppressed(CommonCompiler cmd, string sourceFile, params string[] suppressionKinds);
SarifV1ErrorLoggerTests.cs (3)
21internal override string GetExpectedOutputForNoDiagnostics(CommonCompiler cmd) 39internal override string GetExpectedOutputForSimpleCompilerDiagnostics(CommonCompiler cmd, string sourceFile) 114internal override string GetExpectedOutputForSimpleCompilerDiagnosticsSuppressed(CommonCompiler cmd, string sourceFile, params string[] suppressionKinds)
SarifV2ErrorLoggerTests.cs (4)
25internal override string GetExpectedOutputForNoDiagnostics(CommonCompiler cmd) 57internal override string GetExpectedOutputForSimpleCompilerDiagnostics(CommonCompiler cmd, string sourceFile) 159internal override string GetExpectedOutputForSimpleCompilerDiagnosticsSuppressed(CommonCompiler cmd, string sourceFile, params string[] suppressionKinds) 360CommonCompiler compiler,
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Hosting\CSharpReplServiceProvider.cs (1)
25=> string.Format(CSharpScriptingResources.LogoLine1, CommonCompiler.GetProductVersion(typeof(CSharpReplServiceProvider)));
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
CsiTests.cs (1)
23private static readonly string s_compilerVersion = CommonCompiler.GetProductVersion(typeof(Csi));
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
CommandLineRunnerTests.cs (1)
29private 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)
93private void VerifyRoundTrip(CommonCompiler commonCompiler, string peFilePath, string? pdbFilePath = null, CancellationToken cancellationToken = default)
Microsoft.CodeAnalysis.Scripting (9)
Hosting\CommandLine\CommandLineRunner.cs (9)
26private readonly CommonCompiler _compiler; 30internal CommandLineRunner(ConsoleIO console, CommonCompiler compiler, ScriptCompiler scriptCompiler, ObjectFormatter objectFormatter) 45internal CommonCompiler Compiler => _compiler; 58return CommonCompiler.Failed; 130return CommonCompiler.Failed; 138return CommonCompiler.Succeeded; 189return new CommonCompiler.LoggingSourceFileResolver(arguments.SourcePaths, arguments.BaseDirectory, ImmutableArray<KeyValuePair<string, string>>.Empty, loggerOpt); 205return CommonCompiler.Failed; 315var 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)
422internal 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);
Microsoft.CodeAnalysis.VisualBasic (1)
CommandLine\VisualBasicCompiler.vb (1)
253Return CommonCompiler.TryGetCompilerDiagnosticCode(diagnosticId, "BC", code)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (18)
CommandLineTests.vb (8)
45Private Shared ReadOnly s_compilerVersion As String = CommonCompiler.GetProductVersion(GetType(CommandLineTests)) 951CommonCompiler.GetWin32ResourcesInternal(StandardFileSystem.Instance, MessageProvider.Instance, parsedArgs, compilation, errors) 957CommonCompiler.GetWin32ResourcesInternal(StandardFileSystem.Instance, MessageProvider.Instance, parsedArgs, compilation, errors) 963CommonCompiler.GetWin32ResourcesInternal(StandardFileSystem.Instance, MessageProvider.Instance, parsedArgs, compilation, errors) 970CommonCompiler.GetWin32ResourcesInternal(StandardFileSystem.Instance, MessageProvider.Instance, parsedArgs, compilation, errors) 976CommonCompiler.GetWin32ResourcesInternal(StandardFileSystem.Instance, MessageProvider.Instance, parsedArgs, compilation, errors) 982CommonCompiler.GetWin32ResourcesInternal(StandardFileSystem.Instance, MessageProvider.Instance, parsedArgs, compilation, errors) 994CommonCompiler.GetWin32ResourcesInternal(StandardFileSystem.Instance, MessageProvider.Instance, parsedArgs, compilation, errors)
SarifErrorLoggerTests.vb (3)
23cmd As CommonCompiler) As String 26cmd As CommonCompiler, 30cmd As CommonCompiler,
SarifV1ErrorLoggerTests.vb (3)
25cmd As CommonCompiler) As String 44cmd As CommonCompiler, 120cmd As CommonCompiler,
SarifV2ErrorLoggerTests.vb (4)
25cmd As CommonCompiler) As String 57cmd As CommonCompiler, 159cmd As CommonCompiler, 305Private Function FormatOutputText(s As String, compiler as CommonCompiler, ParamArray additionalArguments() As Object) As String
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
Hosting\VisualBasicReplServiceProvider.vb (1)
32Return String.Format(VBScriptingResources.LogoLine1, CommonCompiler.GetProductVersion(GetType(VisualBasicReplServiceProvider)))
Microsoft.CodeAnalysis.VisualBasic.Scripting.UnitTests (1)
CommandLineRunnerTests.vb (1)
22CommonCompiler.GetProductVersion(GetType(VisualBasicInteractiveCompiler))
vbc (3)
BuildClient.cs (2)
31internal static readonly RunCompilationResult Succeeded = new RunCompilationResult(CommonCompiler.Succeeded); 33internal static readonly RunCompilationResult Failed = new RunCompilationResult(CommonCompiler.Failed);
Program.cs (1)
27return CommonCompiler.Failed;
VBCSCompiler (10)
BuildClient.cs (2)
31internal static readonly RunCompilationResult Succeeded = new RunCompilationResult(CommonCompiler.Succeeded); 33internal static readonly RunCompilationResult Failed = new RunCompilationResult(CommonCompiler.Failed);
BuildServerController.cs (5)
43return CommonCompiler.Failed; 126return CommonCompiler.Failed; 134return CommonCompiler.Succeeded; 165return success ? CommonCompiler.Succeeded : CommonCompiler.Failed;
CompilerRequestHandler.cs (2)
77public bool TryCreateCompiler(in RunRequest request, BuildPaths buildPaths, [NotNullWhen(true)] out CommonCompiler? compiler) 132if (!TryCreateCompiler(request, buildPaths, out CommonCompiler? compiler))
VBCSCompiler.cs (1)
52return 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)
152private 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);