Skip to content

Commit

Permalink
DeletE
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrusNajmabadi committed Nov 26, 2024
1 parent daf4306 commit 93cb31c
Showing 1 changed file with 0 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,38 +120,5 @@ public ImmutableArray<ISymbol> ImplementInterfaceMember(
options.PropertyGenerationBehavior);

return implementedMembers;
//var singleImplemented = implementedMembers[0];
//Contract.ThrowIfNull(singleImplemented);

//// Since non-indexer properties are the only symbols that get their implementing accessor symbols returned,
//// we have to process the created symbols and reduce to the single property wherein the accessors are contained
//if (interfaceMember is IPropertySymbol { IsIndexer: false })
//{
// IPropertySymbol? commonContainer = null;
// foreach (var implementedMember in implementedMembers)
// {
// if (implementedMember is IPropertySymbol implementedProperty)
// {
// commonContainer ??= implementedProperty;
// Contract.ThrowIfFalse(commonContainer == implementedProperty, "We should have a common property implemented");
// }
// else
// {
// Contract.ThrowIfNull(implementedMember);
// var containingProperty = implementedMember.ContainingSymbol as IPropertySymbol;
// Contract.ThrowIfNull(containingProperty);
// commonContainer ??= containingProperty;
// Contract.ThrowIfFalse(commonContainer == containingProperty, "We should have a common property implemented");
// }
// }
// Contract.ThrowIfNull(commonContainer);
// singleImplemented = commonContainer;
//}
//else
//{
// Contract.ThrowIfFalse(implementedMembers.Length == 1, "We missed another case that may return multiple symbols");
//}

//return singleImplemented;
}
}

0 comments on commit 93cb31c

Please sign in to comment.