Add support for indexers (#37)

* .

* .

* .

* ...

* .

* c

* p

* ok

* .
This commit is contained in:
Stef Heyenrath
2022-05-09 22:35:08 +02:00
committed by GitHub
parent ad2b22b008
commit 44213e91ab
11 changed files with 106 additions and 60 deletions
@@ -14,6 +14,10 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
{
public partial interface IPerson
{
ProxyInterfaceSourceGeneratorTests.Source.MyStruct this[int i] { get; set; }
ProxyInterfaceSourceGeneratorTests.Source.MyStruct this[int i, string s] { get; set; }
string Name { get; set; }
string? StringNullable { get; set; }
@@ -19,6 +19,10 @@ namespace ProxyInterfaceSourceGeneratorTests.Source
public ProxyInterfaceSourceGeneratorTests.Source.Human _InstanceBase { get; }
public ProxyInterfaceSourceGeneratorTests.Source.MyStruct this[int i] { get => _Instance[i]; set => _Instance[i] = value; }
public ProxyInterfaceSourceGeneratorTests.Source.MyStruct this[int i, string s] { get => _Instance[i, s]; set => _Instance[i, s] = value; }
public string Name { get => _Instance.Name; set => _Instance.Name = value; }
public string? StringNullable { get => _Instance.StringNullable; set => _Instance.StringNullable = value; }