1 type derived from EmitResult
Microsoft.CodeAnalysis (1)
Emit\EditAndContinue\EmitDifferenceResult.cs (1)
10public sealed class EmitDifferenceResult : EmitResult
1 instantiation of EmitResult
Microsoft.CodeAnalysis (1)
Compilation\Compilation.cs (1)
3020return new EmitResult(success, diagnostics.ToReadOnlyAndFree());
184 references to EmitResult
BuildValidator (1)
CompilationDiff.cs (1)
136var emitResult = compilationFactory.Emit(
Microsoft.AspNetCore.App.Analyzers.Test (1)
Infrastructure\WellKnownTypesTests.cs (1)
80var emitResult = compilation.Emit(stream);
Microsoft.AspNetCore.Http.Extensions.Tests (1)
RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
149var result = compilation.Emit(output, pdb, options: emitOptions, embeddedTexts: embeddedTexts);
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\RequestDelegateCreationTestBase.cs (1)
149var result = compilation.Emit(output, pdb, options: emitOptions, embeddedTexts: embeddedTexts);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RuntimeViewCompiler.cs (1)
348var result = compilation.Emit(
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
CompilerFailedExceptionFactoryTest.cs (1)
53var emitResult = compilation.Emit(new MemoryStream());
Microsoft.CodeAnalysis (8)
Compilation\Compilation.cs (7)
1777/// <see cref="EmitResult"/>. 2666public EmitResult Emit( 2690public EmitResult Emit( 2714public EmitResult Emit( 2775public EmitResult Emit( 2803internal EmitResult Emit( 2920internal EmitResult Emit(
FileSystemExtensions.cs (1)
32public static EmitResult Emit(
Microsoft.CodeAnalysis.CSharp (1)
CSharpFileSystemExtensions.cs (1)
31public static EmitResult Emit(
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
15361var result = compilation.Emit(generatorPath);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
PdbSourceDocument\AbstractPdbSourceDocumentTests.cs (1)
326var result = compilation.Emit(dllStream, pdbStream, options: emitOptions, embeddedTexts: embeddedTexts);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (57)
CodeGen\CodeGenExprLambdaTests.cs (5)
5382var result = compilation.Emit(stream); 5444var result = compilation.Emit(stream); 5517var result = compilation.Emit(stream); 6034var result = compilation2.Emit(stream); 6081var result = compilation2.Emit(stream);
CodeGen\CodeGenTests.cs (4)
14568var result = compilation.Emit(stream); 14602var result = compilation.Emit(stream); 14638var result = compilation.Emit(stream); 14660var result = compilation.Emit(stream);
Emit\CompilationEmitTests.cs (34)
49EmitResult emitResult; 154EmitResult emitResult; 209EmitResult emitResult; 264EmitResult emitResult; 309EmitResult emitResult; 355EmitResult emitResult; 409EmitResult emitResult; 465EmitResult emitResult; 518EmitResult emitResult; 568EmitResult emitResult = comp.Emit(output, metadataPEStream: metadataOutput, 707EmitResult emitResult = comp.Emit(output, metadataPEStream: metadataOutput, 733EmitResult emitResult = comp.Emit(output, metadataPEStream: metadataOutput, 757EmitResult emitResult = comp.Emit(output, metadataPEStream: metadataOutput, 786EmitResult emitResult = comp.Emit(output, metadataPEStream: metadataOutput, 838EmitResult emitResult = comp.Emit(output, metadataPEStream: metadataOutput, 879EmitResult emitResult = comp.Emit(output, metadataPEStream: metadataOutput, 1975var result = comp.Emit(output, metadataPEStream: metadataOutput, 1987var result = comp.Emit(output, 2100var emitResult = comp.Emit(output, options: emitOptions); 2612var result = comp.Emit(output, metadataPEStream: metadataOutput, 2659var result = comp.Emit(output, pdbOutput, metadataPEStream: metadataOutput); 2704EmitResult emitResult; 3371EmitResult emitResult; 3404EmitResult emitResult; 3442EmitResult emitResult; 4233var result = compilation.Emit(new MemoryStream(), options: new EmitOptions(outputNameOverride: "x\0x")); 4637var result = c1.Emit(dllPath, pdbPath); 5167var result = compilation.Emit(output); 5194var result = compilation.Emit(output, pdbStream, options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb)); 5211var result = compilation.Emit(output, pdbStream: pdb); 5457var result = compilation.Emit(broken); 5476var result = comp.Emit(peStream, 5597var emitResult = compilation.Emit(output, pdbStream, xmlDocumentationStream, win32ResourcesStream); 5646var emitResult = compilation.Emit(output, options: emitOptions);
Emit\DeterministicTests.cs (3)
84var resultDeterministic = compilationDeterministic.Emit(Stream.Null, pdbStream: Stream.Null); 85var resultNonDeterministic = compilationNonDeterministic.Emit(Stream.Null, pdbStream: Stream.Null); 495var emitResult = comp.Emit(streamDll, xmlDocumentationStream: streamXml,
Emit\EmitErrorTests.cs (2)
242var result = compilation2.Emit(executableStream); 254var result = compilation2.Emit(executableStream, options: new EmitOptions(metadataOnly: true));
Emit\ResourceTests.cs (9)
210var result = c1.Emit(new MemoryStream(), manifestResources: 240var result = c1.Emit(new MemoryStream(), manifestResources: 260var result = c1.Emit(new MemoryStream(), manifestResources: 293var result = c1.Emit(new MemoryStream(), manifestResources: 313var result = c1.Emit(new MemoryStream(), manifestResources: 340var result = c1.Emit(new MemoryStream(), manifestResources: 774var result = c1.Emit(output, manifestResources: 801var result = c1.Emit(output, manifestResources: 900var result = c1.Emit(new MemoryStream(), manifestResources:
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (18)
PDB\PDBAsyncTests.cs (1)
2036var result = compilation.Emit(
PDB\PDBConstantTests.cs (1)
536var result = compilation.Emit(exebits, pdbbits);
PDB\PDBIteratorTests.cs (1)
1630var result = compilation.Emit(
PDB\PDBSourceLinkTests.cs (2)
123var result = c.Emit(new MemoryStream(), pdbStream, options: EmitOptions.Default.WithDebugInformationFormat(format), sourceLinkStream: sourceLinkStream); 145var result = c.Emit(
PDB\PDBTests.cs (11)
52var result = comp.Emit(new MemoryStream(), pdbStream: new MemoryStream()); 72var result = comp.Emit(new MemoryStream(), pdbStream: new MemoryStream()); 113var result = outputCompilation.Emit(new MemoryStream(), pdbStream: new MemoryStream()); 142var result = comp.Emit(new MemoryStream(), pdbStream: new MemoryStream()); 253var result = compilation.Emit( 285var result = compilation.Emit( 317var result = compilation.Emit( 349var result = compilation.Emit( 395private static EmitResult CompileWithMockedCustomMetadata(int length) 715var result = c1.Emit(new MemoryStream(), new MemoryStream(), debugEntryPoint: f2.GetPublicSymbol()); 12882var result = compilation.Emit(outStream, options: new EmitOptions(pdbFilePath: "test\\?.pdb", debugInformationFormat: DebugInformationFormat.Embedded));
PDB\PDBUsingTests.cs (1)
2909var result = compilation.Emit(exebits, pdbbits);
PDB\PortablePdbTests.cs (1)
382var result = c.Emit(new MemoryStream(), new MemoryStream(), options: EmitOptions.Default.WithDebugInformationFormat(DebugInformationFormat.PortablePdb), sourceLinkStream: sourceLinkStream);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (29)
Attributes\AttributeTests.cs (2)
10036var emitResult2 = compilation2.Emit(peStream: new MemoryStream(), options: new EmitOptions(metadataOnly: true)); 10050var emitResult3 = compilation3.Emit(peStream: new MemoryStream(), options: new EmitOptions(metadataOnly: true));
Attributes\AttributeTests_Security.cs (2)
1638var emitResult = comp.Emit(output); 1651var emitResult = comp.Emit(output);
Attributes\InternalsVisibleToAndStrongNameTests.cs (25)
1508var success = other.Emit(outStrm); 1529EmitResult success; 1647var success = other.Emit(outStrm, metadataPEStream: refStrm); 1665var success = other.Emit(outStrm); 1685var success = other.Emit(outStrm); 1703var success = other.Emit(outStrm); 1722var success = other.Emit(outStrm); 1760var success = other.Emit(outStrm, metadataPEStream: refStrm); 1782var success = other.Emit(outStrm); 1799var success = other.Emit(outStrm); 1819var emitResult = other.Emit(outStrm); 1870var emitResult = other.Emit(outStrm); 1889var emitResult = other.Emit(outStrm); 1909var emitResult = other.Emit(outStrm); 1928var emitResult = other.Emit(outStrm); 1947var emitResult = other.Emit(outStrm); 2449var emitResult = comp.Emit(outStrm); 2519var success = other.Emit(outStrm); 2546var success = other.Emit(outStrm); 2577var result = other.Emit(outStrm); 2607var success = other.Emit(outStrm); 2637var success = other.Emit(outStrm); 2662var success = other.Emit(outStrm); 2692var success = other.Emit(outStrm); 2876var success = other.Emit(outStrm);
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
ObjectFormatterTests.cs (1)
112var result = compilation.Emit(stream);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
ScriptTests.cs (1)
92var emitResult = ScriptBuilder.Emit(peStream, pdbStream, compilation, emitOptions, cancellationToken: default);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\IteratorTests.cs (1)
272EmitResult emitResult;
Semantics\LambdaTests.cs (1)
525var emitResult = vbProject.Emit(metadataStream, options: new EmitOptions(metadataOnly: true));
Semantics\SemanticErrorTests.cs (1)
21583var result = compilation.Emit(exebits, pdbbits, options: TestOptions.NativePdbEmit);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (8)
Compilation\CompilationAPITests.cs (4)
406EmitResult result = c.Emit(stream, options: options); 3098var result = module.Emit(moduleStream); 3117var result = module.Emit(moduleStream); 3138var result = module.Emit(moduleStream);
Symbols\AnonymousTypesSymbolTests.cs (3)
592var result = compilation.Emit(stream, options: new EmitOptions(metadataOnly: metadataOnly)); 1758var result = comp.Emit(new MemoryStream()); 1812var result = comp.Emit(new MemoryStream());
Symbols\SymbolErrorTests.cs (1)
73var emitResult = comp.Emit(new System.IO.MemoryStream());
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (5)
PdbTests.cs (5)
29var result = comp.Emit(output, outputPdb, null); 79var r = c.Emit(peStream, pdbStream); 95var r = c.Emit(peStream, pdbStream); 112var r = c.Emit(peStream, pdbStream); 127var result = comp.Emit(output, outputPdb, outputxml);
Microsoft.CodeAnalysis.Features (1)
SemanticSearch\AbstractSemanticSearchService.cs (1)
94var emitResult = queryCompilation.Emit(peStream, pdbStream, options: emitOptions, cancellationToken: cancellationToken);
Microsoft.CodeAnalysis.Rebuild (5)
CompilationFactory.cs (5)
55public EmitResult Emit( 66public EmitResult Emit( 78public EmitResult Emit( 98public unsafe EmitResult Emit( 142var emitResult = rebuildCompilation.Emit(
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
RoundTripUtil.cs (2)
52var emitResult = compilationFactory.Emit( 102var result = compilationFactory.Emit(
Microsoft.CodeAnalysis.Scripting (2)
ScriptBuilder.cs (2)
133var emitResult = Emit(peStream, pdbStreamOpt, compilation, GetEmitOptions(emitDebugInformation), cancellationToken); 172internal static EmitResult Emit(
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\CompilationExtensions.cs (2)
75var emitResult = compilation.Emit( 103var emitResult = compilation.Emit(stream, options: options);
Compilation\IRuntimeEnvironment.cs (1)
257EmitResult result;
TestBase.cs (1)
199var emitResult = compilation.Emit(dllStream);
Microsoft.CodeAnalysis.UnitTests (1)
Analyzers\AnalyzerFileReferenceTests.cs (1)
490var result = compilation.Emit(generatorPath);
Microsoft.CodeAnalysis.VisualBasic (1)
VisualBasicFileSystemExtensions.vb (1)
36Optional cancellationToken As CancellationToken = Nothing) As EmitResult
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (16)
Attributes\InternalsVisibleToAndStrongNameTests.vb (1)
1411Dim success As EmitResult
Emit\CompilationEmitTests.vb (9)
39Dim emitResult As EmitResult 265Dim emitResult As EmitResult 317Dim emitResult As EmitResult 363Dim emitResult As EmitResult 409Dim emitResult As EmitResult 458Dim emitResult As EmitResult 508Dim emitResult As EmitResult 557Dim emitResult As EmitResult 4457Dim emitResult As EmitResult
Emit\ResourceTests.vb (6)
263Dim result As EmitResult = c1.Emit(output, manifestResources:=New ResourceDescription(0) _ 291Dim result As EmitResult = c1.Emit(output, manifestResources:=New ResourceDescription(0) _ 385Dim result As EmitResult = c1.Emit(output, manifestResources:=New ResourceDescription(1) _ 671Dim result As EmitResult = c1.Emit(output, manifestResources:=New ResourceDescription(1) _ 754Dim result As EmitResult = c1.Emit(output, manifestResources:=New ResourceDescription(1) _ 787Dim result As EmitResult = c1.Emit(output, manifestResources:=New ResourceDescription(1) _
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Source\PropertyTests.vb (1)
8263Private Shared Sub VerifyNoDiagnostics(result As EmitResult)
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\SolutionCompilationState.SkeletonReferenceCache.cs (1)
247var emitResult = compilation.Emit(stream, options: s_metadataOnlyEmitOptions, cancellationToken: cancellationToken);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
MSBuildWorkspaceTestBase.cs (1)
127var result = c1.Emit(p1.OutputFilePath);
Microsoft.Gen.ContextualOptions.Unit.Tests (4)
EmitterTests.cs (4)
35var generatedStruct = new Emitter().Emit(new[] { type }); 59var generatedStruct = new Emitter().Emit(new[] { type }); 88var generatedStruct = new Emitter().Emit(new[] { type }); 116var generatedStruct = new Emitter().Emit(new[] { type });
Microsoft.Gen.Logging.Unit.Tests (1)
CompilationHelper.cs (1)
57var emitResult = compilation.Emit(ms);
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ProjectSystemShim\TempPECompilerService.cs (1)
66var result = compilation.Emit(pszOutputFileName);
Roslyn.Test.PdbUtilities (1)
Reader\PdbValidation.cs (1)
529var result = compilation.Emit(
System.Windows.Forms.Design.Tests (1)
System\Resources\Tools\CodeDomCompileHelper.cs (1)
45var result = compilation.Emit(stream, manifestResources: description);
VBCSCompiler.UnitTests (1)
AnalyzerConsistencyCheckerTests.cs (1)
72var emitResult = comp.Emit(file.Path);
WinShimmer (1)
Program.cs (1)
77var emit = compilation.Emit(exe, win32Resources: resources);