File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/Compilers/CSharp/Portable/Symbols/Source Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments