Skip to content

Commit 6521966

Browse files
committed
Add support for get and set property accessors
1 parent 54c1d99 commit 6521966

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
namespace AssetRipper.Text.SourceGeneration;
2+
3+
public readonly ref struct Get
4+
{
5+
private readonly NamedBlock block;
6+
7+
public IndentedTextWriter Writer => block.Writer;
8+
9+
public Get(IndentedTextWriter writer)
10+
{
11+
block = new NamedBlock(writer, "get");
12+
}
13+
14+
public void Dispose()
15+
{
16+
block.Dispose();
17+
}
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
namespace AssetRipper.Text.SourceGeneration;
2+
3+
public readonly ref struct Set
4+
{
5+
private readonly NamedBlock block;
6+
7+
public IndentedTextWriter Writer => block.Writer;
8+
9+
public Set(IndentedTextWriter writer)
10+
{
11+
block = new NamedBlock(writer, "set");
12+
}
13+
14+
public void Dispose()
15+
{
16+
block.Dispose();
17+
}
18+
}

0 commit comments

Comments
 (0)