Skip to content

Commit 97454ba

Browse files
authored
Merge pull request #26 from fergusbown/delegate-in-interface
Add check for delegate type parameter
2 parents addebd4 + fd3ab68 commit 97454ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

BeaKona.AutoInterfaceGenerator/CSharpCodeTextWriter.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,6 +1238,10 @@ private string GetSourceIdentifier(ISymbol symbol)
12381238
{
12391239
return this.GetSourceIdentifier(tupleElement.Identifier);
12401240
}
1241+
else if (syntax is DelegateDeclarationSyntax @delegate)
1242+
{
1243+
return this.GetSourceIdentifier(@delegate.Identifier);
1244+
}
12411245
else if (syntax is NamespaceDeclarationSyntax @namespace)
12421246
{
12431247
throw new NotSupportedException(syntax.GetType().ToString());

0 commit comments

Comments
 (0)