Skip to content

Commit 7f20a26

Browse files
author
Julien Couvreur
committed
Address feedback
1 parent 2d37470 commit 7f20a26

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Compilers/CSharp/Portable/Symbols/Source/ExtensionGroupingInfo.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ internal ImmutableArray<SourceNamedTypeSymbol> GetMergedExtensions(SourceNamedTy
169169
return GetCorrespondingMarkerType(extension).UnderlyingExtensions;
170170
}
171171

172-
// Returns all the extension blocks but grouped/merged by equivalency (ie. same marker name)
172+
/// <summary>
173+
/// Returns all the extension blocks but grouped/merged by equivalency (ie. same marker name)
174+
/// </summary>
173175
internal IEnumerable<ImmutableArray<SourceNamedTypeSymbol>> EnumerateMergedExtensionBlocks()
174176
{
175177
GetGroupingTypes();
@@ -421,8 +423,9 @@ protected override ITypeDefinition ContainingTypeDefinition
421423
{
422424
get
423425
{
424-
Debug.Assert(ExtensionMarkerTypes[0].UnderlyingExtensions[0].ContainingType is not null);
425-
return ExtensionMarkerTypes[0].UnderlyingExtensions[0].ContainingType!.GetCciAdapter();
426+
NamedTypeSymbol? containingType = ExtensionMarkerTypes[0].UnderlyingExtensions[0].ContainingType;
427+
Debug.Assert(containingType is not null);
428+
return containingType.GetCciAdapter();
426429
}
427430
}
428431

0 commit comments

Comments
 (0)