Add support for reserved keywords like @object and @string (#18)

This commit is contained in:
Stef Heyenrath
2021-07-31 10:21:12 +02:00
committed by GitHub
parent c1359511d6
commit 541477b545
8 changed files with 188 additions and 165 deletions
@@ -1,7 +1,7 @@
using System;
using Microsoft.CodeAnalysis;
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.CodeAnalysis;
namespace ProxyInterfaceSourceGenerator.Utils
{
@@ -31,6 +31,7 @@ namespace ProxyInterfaceSourceGenerator.Utils
filter);
}
// TODO : do we need also to check for "SanitizedName()" here?
private static IEnumerable<T> GetPublicMembers<T>(INamedTypeSymbol classSymbol, params Func<T, bool>[] filters) where T : ISymbol
{
var membersQuery = classSymbol.GetMembers().OfType<T>()