Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ private List<string> GetClassDocumentation()
return new List<string>
{
"/// <summary>",
$"/// The generated Lambda function handler for <see cref=\"{lambdaMethod.ContainingType.FullName}\"/>.",
$"/// The generated Lambda function handler for <see cref=\"{FormatCrefType(lambdaMethod.ContainingType.FullName)}\"/>.",
"/// </summary>"
};
}
Expand All @@ -39,7 +39,7 @@ private List<string> GetMethodDocumentation()
};
if (lambdaMethod.Parameters.Any())
{
docStringlines.Add($"/// The generated Lambda function handler for <see cref=\"{lambdaMethod.Name}({string.Join(", ", lambdaMethod.Parameters.Select(p => p.Type.FullName))})\"/>");
docStringlines.Add($"/// The generated Lambda function handler for <see cref=\"{lambdaMethod.Name}({string.Join(", ", lambdaMethod.Parameters.Select(p => FormatCrefType(p.Type.FullName)))})\"/>");
}
else
{
Expand All @@ -56,5 +56,15 @@ private List<string> GetMethodDocumentation()

return docStringlines;
}

private static string FormatCrefType(string typeName)
{
if (string.IsNullOrEmpty(typeName))
{
return typeName;
}

return typeName.Replace('<', '{').Replace('>', '}');
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public ComplexCalculator_Subtract_Generated()
}

/// <summary>
/// The generated Lambda function handler for <see cref="Subtract(System.Collections.Generic.IList<System.Collections.Generic.IList<int>>)"/>
/// The generated Lambda function handler for <see cref="Subtract(System.Collections.Generic.IList{System.Collections.Generic.IList{int}})"/>
/// </summary>
/// <param name="__request__">The API Gateway request object that will be processed by the Lambda function handler.</param>
/// <param name="__context__">The ILambdaContext that provides methods for logging and describing the Lambda environment.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public Greeter_SayHelloAsync_Generated()
}

/// <summary>
/// The generated Lambda function handler for <see cref="SayHelloAsync(System.Collections.Generic.IEnumerable<string>)"/>
/// The generated Lambda function handler for <see cref="SayHelloAsync(System.Collections.Generic.IEnumerable{string})"/>
/// </summary>
/// <param name="__request__">The API Gateway request object that will be processed by the Lambda function handler.</param>
/// <param name="__context__">The ILambdaContext that provides methods for logging and describing the Lambda environment.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public Greeter_SayHello_Generated()
}

/// <summary>
/// The generated Lambda function handler for <see cref="SayHello(System.Collections.Generic.IEnumerable<string>, Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest, Amazon.Lambda.Core.ILambdaContext)"/>
/// The generated Lambda function handler for <see cref="SayHello(System.Collections.Generic.IEnumerable{string}, Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest, Amazon.Lambda.Core.ILambdaContext)"/>
/// </summary>
/// <param name="__request__">The API Gateway request object that will be processed by the Lambda function handler.</param>
/// <param name="__context__">The ILambdaContext that provides methods for logging and describing the Lambda environment.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public Greeter_SayHelloAsync_Generated()
}

/// <summary>
/// The generated Lambda function handler for <see cref="SayHelloAsync(System.Collections.Generic.IEnumerable<string>)"/>
/// The generated Lambda function handler for <see cref="SayHelloAsync(System.Collections.Generic.IEnumerable{string})"/>
/// </summary>
/// <param name="__request__">The API Gateway request object that will be processed by the Lambda function handler.</param>
/// <param name="__context__">The ILambdaContext that provides methods for logging and describing the Lambda environment.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public Greeter_SayHello_Generated()
}

/// <summary>
/// The generated Lambda function handler for <see cref="SayHello(System.Collections.Generic.IEnumerable<string>, Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest, Amazon.Lambda.Core.ILambdaContext)"/>
/// The generated Lambda function handler for <see cref="SayHello(System.Collections.Generic.IEnumerable{string}, Amazon.Lambda.APIGatewayEvents.APIGatewayProxyRequest, Amazon.Lambda.Core.ILambdaContext)"/>
/// </summary>
/// <param name="__request__">The API Gateway request object that will be processed by the Lambda function handler.</param>
/// <param name="__context__">The ILambdaContext that provides methods for logging and describing the Lambda environment.</param>
Expand Down