Skip to content

Conversation

gpanaitescu
Copy link
Contributor

@gpanaitescu gpanaitescu marked this pull request as draft September 25, 2025 12:49
@gpanaitescu gpanaitescu requested a review from Copilot September 25, 2025 12:49
Copilot

This comment was marked as outdated.

@gpanaitescu gpanaitescu force-pushed the fix/validate_and_compile_safe_cast_arguments branch 2 times, most recently from a4e280f to 74d08ba Compare October 1, 2025 12:00
@gpanaitescu gpanaitescu changed the title WIP (STUD-76892) Improve out arguments assignability, for both validation and expression compilation (STUD-76892) Oct 1, 2025
@gpanaitescu gpanaitescu marked this pull request as ready for review October 1, 2025 12:04
Copilot

This comment was marked as outdated.

@gpanaitescu gpanaitescu force-pushed the fix/validate_and_compile_safe_cast_arguments branch from 74d08ba to cd9b0d8 Compare October 1, 2025 14:36
@gpanaitescu gpanaitescu requested a review from Copilot October 1, 2025 14:37
Copilot

This comment was marked as outdated.

@gpanaitescu gpanaitescu force-pushed the fix/validate_and_compile_safe_cast_arguments branch from cd9b0d8 to 47a4613 Compare October 1, 2025 15:43
@gpanaitescu gpanaitescu requested a review from Copilot October 1, 2025 15:44
Copilot

This comment was marked as outdated.

@gpanaitescu gpanaitescu force-pushed the fix/validate_and_compile_safe_cast_arguments branch from 47a4613 to cf42473 Compare October 1, 2025 16:06
@gpanaitescu gpanaitescu requested a review from Copilot October 1, 2025 16:07
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@gpanaitescu gpanaitescu force-pushed the fix/validate_and_compile_safe_cast_arguments branch 3 times, most recently from aa33d51 to a46c178 Compare October 8, 2025 07:09
@gpanaitescu gpanaitescu force-pushed the fix/validate_and_compile_safe_cast_arguments branch from a46c178 to 5734aae Compare October 8, 2025 07:18
@gpanaitescu gpanaitescu requested a review from Copilot October 8, 2025 07:37
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.

Comments suppressed due to low confidence (1)

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

internal static string CreateValueCode(IEnumerable<string> types, string names, string code, string activityId, int index)
{
var serializedArgumentTypes = string.Join(CompilerHelper.Comma, types);
if (types.Count() <= 16) // .net defines Func<TResult>...Func<T1,...T16,TResult)
Copy link

Copilot AI Oct 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment has a typo in 'Funct' which should be 'Func'.

Copilot uses AI. Check for mistakes.

Comment on lines +2548 to +2550
/// <param name="variableName">The name of the variable to be cast. If null or whitespace, "null" is used instead.</param>
/// <param name="targetType">The target <see cref="Type"/> to which the variable is being cast.</param>
/// <returns>A string in the format "<paramref name="variableName"/> as <paramref name="targetType"/>" for valid types, otherwise just the variable name.</returns>
Copy link

Copilot AI Oct 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The XML documentation uses <paramref> tags in the returns description, but these should be <paramref name=\"variableName\"/> and <paramref name=\"targetType\"/> to properly reference the parameters.

Copilot uses AI. Check for mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants