Skip to content

Commit 8263c42

Browse files
committed
#2 file work is complete
1 parent d1174db commit 8263c42

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
- Records are now considered for `Deconstruct()` generation (issue [#4](https://github.com/JasonBock/AutoDeconstruct/issues/4))
1313
- Putting `[NoAutoDeconstruct]` on a type will signal AutoDeconstruct not to generate a `Deconstruct()` method (issue [#6](https://github.com/JasonBock/AutoDeconstruct/issues/6))
1414
- All parameter names now have `@` in front to eliminate any potential keyword conflicts (issue [#9](https://github.com/JasonBock/AutoDeconstruct/issues/9))
15+
- Generated code is now stored in one file (issue [#2](https://github.com/JasonBock/AutoDeconstruct/issues/2))
1516

1617
### Fixed
1718
- Generic types are now handled correctly (issue [#8](https://github.com/JasonBock/AutoDeconstruct/issues/8))

src/AutoDeconstruct/AutoDeconstructGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ data.AttributeClass is not null &&
105105

106106
if(wasBuildInvoked)
107107
{
108-
var text = SourceText.From(writer.ToString(), Encoding.UTF8);
109-
context.AddSource("AutoDeconstruct.g.cs", text);
108+
context.AddSource("AutoDeconstruct.g.cs",
109+
SourceText.From(writer.ToString(), Encoding.UTF8));
110110
}
111111
}
112112
}

0 commit comments

Comments
 (0)