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 (IsRestartRequired(oldMember, oldDeclaration, oldModel.
Compilation
, newMember, newDeclaration, cancellationToken))
2737
var oldSymbolInNewCompilation = symbolCache.GetKey(oldSymbol, cancellationToken).Resolve(newModel.
Compilation
, ignoreAssemblyKey: true, cancellationToken).Symbol;
2738
var newSymbolInOldCompilation = symbolCache.GetKey(newSymbol, cancellationToken).Resolve(oldModel.
Compilation
, ignoreAssemblyKey: true, cancellationToken).Symbol;
2806
oldContainingType ??= (INamedTypeSymbol?)containingTypeSymbolKey.Resolve(oldModel.
Compilation
, ignoreAssemblyKey: true, cancellationToken).Symbol;
2807
newContainingType ??= (INamedTypeSymbol?)containingTypeSymbolKey.Resolve(newModel.
Compilation
, ignoreAssemblyKey: true, cancellationToken).Symbol;
2880
if (DeleteEditImpliesInsertEdit(oldSymbol, newSymbol, oldModel.
Compilation
, cancellationToken))
2939
var newContainingType = (INamedTypeSymbol?)containingTypeKey.Resolve(newModel.
Compilation
, ignoreAssemblyKey: true, cancellationToken).Symbol;
2981
AddSynthesizedRecordMethodUpdatesForPropertyChange(semanticEdits, newModel.
Compilation
, newContainingType, cancellationToken);
2994
AddDeconstructorEdits(semanticEdits, oldPrimaryConstructor, otherConstructor: null, containingTypeKey, oldModel.
Compilation
, newModel.
Compilation
, isParameterDelete: true, cancellationToken);
2997
AddSynthesizedRecordMethodUpdatesForPropertyChange(semanticEdits, newModel.
Compilation
, newContainingType, cancellationToken);
3064
oldContainingType = containingTypeKey.Resolve(oldModel.
Compilation
, ignoreAssemblyKey: true, cancellationToken).Symbol as INamedTypeSymbol;
3105
AddSynthesizedRecordMethodUpdatesForPropertyChange(semanticEdits, newModel.
Compilation
, newContainingType, cancellationToken);
3238
AddSynthesizedRecordMethodUpdatesForPropertyChange(semanticEdits, newModel.
Compilation
, newProperty.ContainingType, cancellationToken);
3583
oldSymbol ??= Resolve(newSymbol!, symbolCache.GetKey(newSymbol!, cancellationToken), oldModel.
Compilation
, cancellationToken);
3584
newSymbol ??= Resolve(oldSymbol!, symbolCache.GetKey(oldSymbol!, cancellationToken), newModel.
Compilation
, cancellationToken);
4013
var newType = SymbolKey.Create(oldType, cancellationToken).Resolve(newModel.
Compilation
, ignoreAssemblyKey: true, cancellationToken).Symbol;
4044
var oldType = SymbolKey.Create(newType, cancellationToken).Resolve(oldModel.
Compilation
, ignoreAssemblyKey: true, cancellationToken).Symbol;
4640
AddSemanticEditsOriginatingFromParameterUpdate(semanticEdits, oldParameter, newParameter, diagnosticContext.NewModel.
Compilation
, cancellationToken);
5129
if (symbolKey.Resolve(newModel.
Compilation
, ignoreAssemblyKey: true, cancellationToken).Symbol is { } newSymbol)
5334
var layoutAttribute = model.
Compilation
.GetTypeByMetadataName(typeof(StructLayoutAttribute).FullName!);
5536
var resolution = newCtorKey.Resolve(oldModel.
Compilation
, ignoreAssemblyKey: true, cancellationToken);
5624
AddDeconstructorEdits(semanticEdits, oldCtor, newCtor, typeKey, oldModel.
Compilation
, newModel.
Compilation
, isParameterDelete: newCtorIsPrimary, cancellationToken);
5627
AddSynthesizedRecordMethodUpdatesForPropertyChange(semanticEdits, newModel.
Compilation
, newCtor.ContainingType, cancellationToken);
5774
oldModel.
Compilation
,