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