139 references to EmitBaseline
Microsoft.CodeAnalysis (28)
Compilation\Compilation.cs (7)
3041EmitBaseline baseline, 3061EmitBaseline baseline, 3088EmitBaseline baseline, 3134EmitBaseline baseline, 3418private protected abstract EmitBaseline MapToCompilation(CommonPEModuleBuilder moduleBeingBuilt); 3420internal EmitBaseline? SerializeToDeltaStreams( 3450var baseline = MapToCompilation(moduleBeingBuilt);
Emit\CommonPEModuleBuilder.cs (1)
81public abstract EmitBaseline? PreviousGeneration { get; }
Emit\EditAndContinue\DefinitionMap.cs (2)
50public readonly EmitBaseline Baseline; 52protected DefinitionMap(IEnumerable<SemanticEdit> edits, EmitBaseline baseline)
Emit\EditAndContinue\DeltaMetadataWriter.cs (4)
27private readonly EmitBaseline _previousGeneration; 74EmitBaseline previousGeneration, 134private static MetadataBuilder MakeTablesBuilder(EmitBaseline previousGeneration) 170internal EmitBaseline GetDelta(Compilation compilation, Guid encId, MetadataSizes metadataSizes)
Emit\EditAndContinue\EmitBaseline.cs (10)
84public static EmitBaseline CreateInitialBaseline(ModuleMetadata module, Func<MethodDefinitionHandle, EditAndContinueMethodDebugInformation> debugInformationProvider) 89public static EmitBaseline CreateInitialBaseline( 97/// Creates an <see cref="EmitBaseline"/> from the metadata of the module before editing 115/// <returns>An <see cref="EmitBaseline"/> for the module.</returns> 125/// is carried over through <see cref="EmitBaseline"/>. The compiler assigns slots to named local variables (including named temporary variables) 130/// to the next generation (rather than e.g. create new <see cref="EmitBaseline"/>s from scratch based on metadata produced by subsequent compilations). 138public static EmitBaseline CreateInitialBaseline( 203internal EmitBaseline InitialBaseline { get; } 289EmitBaseline? initialBaseline, 391internal EmitBaseline With(
Emit\EditAndContinue\EmitDifferenceResult.cs (2)
12public EmitBaseline? Baseline { get; } 24internal EmitDifferenceResult(bool success, ImmutableArray<Diagnostic> diagnostics, EmitBaseline? baseline, ImmutableArray<MethodDefinitionHandle> updatedMethods, ImmutableArray<TypeDefinitionHandle> changedTypes)
Emit\EditAndContinue\SymbolMatcher.cs (2)
29public EmitBaseline MapBaselineToCompilation( 30EmitBaseline baseline,
Microsoft.CodeAnalysis.CSharp (14)
Compilation\CSharpCompilation.cs (2)
3534private protected override EmitBaseline MapToCompilation(CommonPEModuleBuilder moduleBeingBuilt) 3732EmitBaseline baseline,
Emitter\EditAndContinue\CSharpDefinitionMap.cs (1)
31EmitBaseline baseline) : DefinitionMap(edits, baseline)
Emitter\EditAndContinue\EmitHelpers.cs (5)
25EmitBaseline baseline, 57var initialBaseline = baseline.InitialBaseline; 119EmitBaseline? newBaseline = null; 187internal static EmitBaseline MapToCompilation( 191var previousGeneration = moduleBeingBuilt.PreviousGeneration;
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (4)
76public override EmitBaseline PreviousGeneration => _changes.DefinitionMap.Baseline; 88internal static EmitBaseline.MetadataSymbols GetOrCreateMetadataSymbols(EmitBaseline initialBaseline, CSharpCompilation compilation) 106var metadataSymbols = new EmitBaseline.MetadataSymbols(synthesizedTypes, metadataDecoder, assemblyReferenceIdentityMap);
Emitter\Model\PEAssemblyBuilder.cs (1)
639public override EmitBaseline? PreviousGeneration => null;
Emitter\Model\PENetModuleBuilder.cs (1)
39public override EmitBaseline? PreviousGeneration => null;
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (60)
Emit\EditAndContinue\AssemblyReferencesTests.cs (7)
69var baseline = CreateInitialBaseline(compilation0, md1.GetModules()[0], handle => default(EditAndContinueMethodDebugInformation)); 141var baseline = CreateInitialBaseline(compilation0, md1.GetModules()[0], handle => default(EditAndContinueMethodDebugInformation)); 224var generation0 = CreateInitialBaseline(compilation0, md0, EmptyLocalsProvider); 329var generation0 = CreateInitialBaseline(compilation0, md0, EmptyLocalsProvider); 412var generation0 = CreateInitialBaseline(compilation0, md0, EmptyLocalsProvider); 492var generation0 = CreateInitialBaseline(compilation0, md0, EmptyLocalsProvider); 602var generation0 = CreateInitialBaseline(compilation0, md0, v0.CreateSymReader().GetEncMethodDebugInfo);
Emit\EditAndContinue\EditAndContinueDelegateCacheTests.cs (5)
57var generation0 = CreateInitialBaseline(compilation0, moduleData0, methodData0.EncDebugInfoProvider()); 121var generation0 = CreateInitialBaseline(compilation0, moduleData0, methodData0.EncDebugInfoProvider()); 185var generation0 = CreateInitialBaseline(compilation0, moduleData0, methodData0.EncDebugInfoProvider()); 249var generation0 = CreateInitialBaseline(compilation0, moduleData0, methodData0.EncDebugInfoProvider()); 313var generation0 = CreateInitialBaseline(compilation0, moduleData0, methodData0.EncDebugInfoProvider());
Emit\EditAndContinue\EditAndContinuePdbTests.cs (1)
145var generation0 = CreateInitialBaseline(compilation0, md0, v0.CreateSymReader().GetEncMethodDebugInfo);
Emit\EditAndContinue\EditAndContinueTestBase.cs (1)
44public static EmitBaseline CreateInitialBaseline(Compilation compilation, ModuleMetadata module, Func<MethodDefinitionHandle, EditAndContinueMethodDebugInformation> debugInformationProvider)
Emit\EditAndContinue\EditAndContinueTests.cs (6)
350var generation0 = CreateInitialBaseline(compilation0, md0, v0.CreateSymReader().GetEncMethodDebugInfo); 402var generation0 = CreateInitialBaseline(compilation0, md0, v0.CreateSymReader().GetEncMethodDebugInfo); 470var generation0 = CreateInitialBaseline(compilation0, md0, v0.CreateSymReader().GetEncMethodDebugInfo); 514var generation0 = CreateInitialBaseline(compilation0, 576var generation0 = CreateInitialBaseline(compilation0, 802var generation0 = CreateInitialBaseline(compilation0,
Emit\EditAndContinue\LocalSlotMappingTests.cs (40)
55var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData), methodData0.EncDebugInfoProvider()); 249var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(bytes0), symReader.GetEncMethodDebugInfo); 433var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(bytes0), m => methodData0.GetEncDebugInfo()); 540var generation0 = CreateInitialBaseline(compilation0, md0, symReader.GetEncMethodDebugInfo); 652var generation0 = CreateInitialBaseline(compilation0, md0, symReader.GetEncMethodDebugInfo); 762var generation0 = CreateInitialBaseline(compilation0, md0, symReader.GetEncMethodDebugInfo); 853var generation0 = CreateInitialBaseline(compilation0, md0, symReader.GetEncMethodDebugInfo); 1154var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(bytes0), methodData0.EncDebugInfoProvider()); 1215var generation0 = CreateInitialBaseline(compilation0, 1323var generation0 = CreateInitialBaseline(compilation0, 1487var generation0 = CreateInitialBaseline(compilation0, 1745var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData), methodData0.EncDebugInfoProvider()); 1855var generation0 = CreateInitialBaseline(compilation0, 2015var generation0 = CreateInitialBaseline(compilation0, 2048var generation0 = CreateInitialBaseline(compilation0, 2199var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData), methodData0.EncDebugInfoProvider()); 2423var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData), methodData0.EncDebugInfoProvider()); 2605var generation0 = CreateInitialBaseline(compilation0, 2743var generation0 = CreateInitialBaseline(compilation0, 2921var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData), methodData0.EncDebugInfoProvider()); 3057var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData), methodData0.EncDebugInfoProvider()); 3220var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData), methodData0.EncDebugInfoProvider()); 3384var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData), methodData0.EncDebugInfoProvider()); 3493var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData), methodData0.EncDebugInfoProvider()); 3603var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData), methodData0.EncDebugInfoProvider()); 3694var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(v0.EmittedAssemblyData), methodData0.EncDebugInfoProvider()); 3898var generation0 = CreateInitialBaseline(compilation0, md0, v0.CreateSymReader().GetEncMethodDebugInfo); 4240var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(bytes0), methodData0.EncDebugInfoProvider()); 4287var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(bytes0), methodData0.EncDebugInfoProvider()); 4343var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(bytes0), methodData0.EncDebugInfoProvider()); 4398var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(bytes0), methodData0.EncDebugInfoProvider()); 4450var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(bytes0), methodData0.EncDebugInfoProvider()); 4506var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(bytes0), methodData0.EncDebugInfoProvider()); 4575var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(bytes0), methodData0.EncDebugInfoProvider()); 4655var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(bytes0), methodData0.EncDebugInfoProvider()); 4750var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(bytes0), methodData0.EncDebugInfoProvider()); 4809var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(bytes0), methodData0.EncDebugInfoProvider()); 4869var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(bytes0), methodData0.EncDebugInfoProvider()); 4958var generation0 = CreateInitialBaseline(compilation0, ModuleMetadata.CreateFromImage(bytes0), methodData0.EncDebugInfoProvider()); 5114var generation0 = CreateInitialBaseline(compilation0, md0, v0.CreateSymReader().GetEncMethodDebugInfo);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
EditAndContinueTestUtilities.cs (2)
34public static EmitBaseline GetInitialEmitBaseline(this EmitBaseline baseline)
Microsoft.CodeAnalysis.Features (7)
EditAndContinue\DebuggingSession.cs (5)
308/// Get <see cref="EmitBaseline"/> for given project. 332if (!TryCreateInitialBaseline(baselineCompilation, outputs, baselineProject.Id, out diagnostics, out var initialBaseline, out var debugInfoReaderProvider, out var metadataReaderProvider)) 363[NotNullWhen(true)] out EmitBaseline? baseline, 401baseline = EmitBaseline.CreateInitialBaseline( 901public EmitBaseline GetProjectEmitBaseline(ProjectId id)
EditAndContinue\ProjectBaseline.cs (2)
9internal sealed class ProjectBaseline(ProjectId projectId, EmitBaseline emitBaseline, int generation) 12public EmitBaseline EmitBaseline { get; } = emitBaseline;
Microsoft.CodeAnalysis.Features.UnitTests (2)
EditAndContinue\EditAndContinueWorkspaceServiceTests.cs (2)
3225var baselineA0 = newBaselineA1.GetInitialEmitBaseline(); 3226var baselineB0 = newBaselineB1.GetInitialEmitBaseline();
Microsoft.CodeAnalysis.Test.Utilities (2)
Compilation\CompilationDifference.cs (1)
49public EmitBaseline NextGeneration
Compilation\CompilationExtensions.cs (1)
142EmitBaseline baseline,
Microsoft.CodeAnalysis.UnitTests (5)
Emit\EmitBaselineTests.cs (5)
33Assert.Throws<ArgumentNullException>(() => EmitBaseline.CreateInitialBaseline(null, peModule, debugInfoProvider, localSigProvider, true)); 34Assert.Throws<ArgumentNullException>(() => EmitBaseline.CreateInitialBaseline(compilation, null, debugInfoProvider, localSigProvider, true)); 35Assert.Throws<ArgumentNullException>(() => EmitBaseline.CreateInitialBaseline(compilation, peModule, null, localSigProvider, true)); 36Assert.Throws<ArgumentNullException>(() => EmitBaseline.CreateInitialBaseline(compilation, mdModule, debugInfoProvider, null, true)); 37Assert.NotNull(EmitBaseline.CreateInitialBaseline(compilation, mdModule, debugInfoProvider, localSigProvider, true));
Microsoft.CodeAnalysis.VisualBasic (12)
Compilation\VisualBasicCompilation.vb (2)
2526Private Protected Overrides Function MapToCompilation(moduleBeingBuilt As CommonPEModuleBuilder) As EmitBaseline 2590baseline As EmitBaseline,
Emit\EditAndContinue\EmitHelpers.vb (3)
22baseline As EmitBaseline, 108Dim newBaseline As EmitBaseline = Nothing 167moduleBeingBuilt As PEDeltaAssemblyBuilder) As EmitBaseline
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (4)
89Public Overrides ReadOnly Property PreviousGeneration As EmitBaseline 95Friend Shared Function GetOrCreateMetadataSymbols(initialBaseline As EmitBaseline, compilation As VisualBasicCompilation) As EmitBaseline.MetadataSymbols 111Dim metadataSymbols = New EmitBaseline.MetadataSymbols(synthesizedTypes, metadataDecoder, assemblyReferenceIdentityMap)
Emit\EditAndContinue\VisualBasicDefinitionMap.vb (1)
33baseline As EmitBaseline)
Emit\PEAssemblyBuilder.vb (1)
195Public Overrides ReadOnly Property PreviousGeneration As EmitBaseline
Emit\PENetModuleBuilder.vb (1)
42Public Overrides ReadOnly Property PreviousGeneration As EmitBaseline
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Emit\EditAndContinue\EditAndContinueTestBase.vb (1)
39Public Shared Function CreateInitialBaseline(compilation As Compilation, [module] As ModuleMetadata, debugInformationProvider As Func(Of MethodDefinitionHandle, EditAndContinueMethodDebugInformation)) As EmitBaseline
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
EEAssemblyBuilder.vb (1)
78Public Overrides ReadOnly Property PreviousGeneration As EmitBaseline
Roslyn.Test.PdbUtilities (5)
EditAndContinue\EditAndContinueTest.cs (1)
65var baseline = EditAndContinueTestUtilities.CreateInitialBaseline(compilation, md, debugInformationProvider ?? verifier.CreateSymReader().GetEncMethodDebugInfo);
EditAndContinue\EditAndContinueTest.GenerationInfo.cs (2)
19public readonly EmitBaseline Baseline; 32public GenerationInfo(Compilation compilation, MetadataReader reader, CompilationDifference? diff, CompilationVerifier? compilationVerifier, EmitBaseline baseline, Action<GenerationVerifier> verifier)
EditAndContinue\EditAndContinueTestUtilities.cs (2)
19public static EmitBaseline CreateInitialBaseline(Compilation compilation, ModuleMetadata module, Func<MethodDefinitionHandle, EditAndContinueMethodDebugInformation> debugInformationProvider) 35return EmitBaseline.CreateInitialBaseline(compilation, module, debugInformationProvider, localSignatureProvider, hasPortableDebugInformation);