Skip to content

Commit e12637e

Browse files
Copilotdex3r
andcommitted
Improve doc comment on GetReturnExpression about simple structure assumption
Co-authored-by: dex3r <[email protected]> Agent-Logs-Url: https://github.com/dex3r/EasySourceGenerators/sessions/ea25cd90-2a07-42c1-8091-f255cb2c6687
1 parent 5420b05 commit e12637e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

EasySourceGenerators.Generators/IncrementalGenerators/DelegateBodySyntaxExtractor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ internal static class DelegateBodySyntaxExtractor
5252
/// <summary>
5353
/// Gets the return expression from a generator method. Handles both expression-body
5454
/// methods (<c>=&gt; expr</c>) and block-body methods (<c>{ return expr; }</c>).
55+
/// Assumes the generator method has a simple structure with at most one return statement.
5556
/// </summary>
5657
private static ExpressionSyntax? GetReturnExpression(MethodDeclarationSyntax method)
5758
{

0 commit comments

Comments
 (0)