2 writes to Compilation
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\DocumentSemanticModel.cs (2)
23
Compilation
= model.Compilation;
31
Compilation
= compilation;
29 references to Compilation
Microsoft.CodeAnalysis.CSharp.Features (1)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1085
var matchingNewContainingMemberOrType = GetSemanticallyMatchingNewSymbol(oldContainingMemberOrType, newContainingMemberOrType, newModel.
Compilation
, symbolCache, cancellationToken);
Microsoft.CodeAnalysis.Features (28)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (28)
236
if (editKind == EditKind.Update && GetSemanticallyMatchingNewSymbol(oldSymbol, newSymbol, newModel.
Compilation
, symbolCache, cancellationToken) != null)
1244
oldModel.
Compilation
,
1279
if (!bodyHasActiveStatement && IsRestartRequired(oldMember, oldDeclaration, oldModel.
Compilation
, newMember, newDeclaration, cancellationToken))
2757
var oldSymbolInNewCompilation = symbolCache.GetKey(oldSymbol, cancellationToken).Resolve(newModel.
Compilation
, ignoreAssemblyKey: true, cancellationToken).Symbol;
2758
var newSymbolInOldCompilation = symbolCache.GetKey(newSymbol, cancellationToken).Resolve(oldModel.
Compilation
, ignoreAssemblyKey: true, cancellationToken).Symbol;
2826
oldContainingType ??= (INamedTypeSymbol?)containingTypeSymbolKey.Resolve(oldModel.
Compilation
, ignoreAssemblyKey: true, cancellationToken).Symbol;
2827
newContainingType ??= (INamedTypeSymbol?)containingTypeSymbolKey.Resolve(newModel.
Compilation
, ignoreAssemblyKey: true, cancellationToken).Symbol;
2900
if (DeleteEditImpliesInsertEdit(oldSymbol, newSymbol, oldModel.
Compilation
, cancellationToken))
2970
var newContainingType = (INamedTypeSymbol?)containingTypeKey.Resolve(newModel.
Compilation
, ignoreAssemblyKey: true, cancellationToken).Symbol;
3012
AddSynthesizedRecordMethodUpdatesForPropertyChange(semanticEdits, newModel.
Compilation
, newContainingType, cancellationToken);
3025
AddDeconstructorEdits(semanticEdits, oldPrimaryConstructor, otherConstructor: null, containingTypeKey, oldModel.
Compilation
, newModel.
Compilation
, isParameterDelete: true, cancellationToken);
3028
AddSynthesizedRecordMethodUpdatesForPropertyChange(semanticEdits, newModel.
Compilation
, newContainingType, cancellationToken);
3095
oldContainingType = containingTypeKey.Resolve(oldModel.
Compilation
, ignoreAssemblyKey: true, cancellationToken).Symbol as INamedTypeSymbol;
3148
AddSynthesizedRecordMethodUpdatesForPropertyChange(semanticEdits, newModel.
Compilation
, newContainingType, cancellationToken);
3281
AddSynthesizedRecordMethodUpdatesForPropertyChange(semanticEdits, newModel.
Compilation
, newProperty.ContainingType, cancellationToken);
3626
oldSymbol ??= Resolve(newSymbol!, symbolCache.GetKey(newSymbol!, cancellationToken), oldModel.
Compilation
, cancellationToken);
3627
newSymbol ??= Resolve(oldSymbol!, symbolCache.GetKey(oldSymbol!, cancellationToken), newModel.
Compilation
, cancellationToken);
4056
var newType = SymbolKey.Create(oldType, cancellationToken).Resolve(newModel.
Compilation
, ignoreAssemblyKey: true, cancellationToken).Symbol;
4087
var oldType = SymbolKey.Create(newType, cancellationToken).Resolve(oldModel.
Compilation
, ignoreAssemblyKey: true, cancellationToken).Symbol;
4707
AddSemanticEditsOriginatingFromParameterUpdate(semanticEdits, oldParameter, newParameter, diagnosticContext.NewModel.
Compilation
, cancellationToken);
5196
if (symbolKey.Resolve(newModel.
Compilation
, ignoreAssemblyKey: true, cancellationToken).Symbol is { } newSymbol)
5401
var layoutAttribute = model.
Compilation
.GetTypeByMetadataName(typeof(StructLayoutAttribute).FullName!);
5603
var resolution = newCtorKey.Resolve(oldModel.
Compilation
, ignoreAssemblyKey: true, cancellationToken);
5691
AddDeconstructorEdits(semanticEdits, oldCtor, newCtor, typeKey, oldModel.
Compilation
, newModel.
Compilation
, isParameterDelete: newCtorIsPrimary, cancellationToken);
5694
AddSynthesizedRecordMethodUpdatesForPropertyChange(semanticEdits, newModel.
Compilation
, newCtor.ContainingType, cancellationToken);
5841
oldModel.
Compilation
,