Skip to content

Conversation

@SENya1990
Copy link
Collaborator

@SENya1990 SENya1990 commented Jan 19, 2026

Changes Overview

  • fixed handling of ref/out/in/ref readonly parameters by introducing a replacement algorithm to add required ref modifiers to the generated doc ID for the method
  • fixed view delegates recognition to correctly find regular view delegates and rare view delegates with ref parameters
  • added unit test for PX1098 for methods with ref, out, in, and ref readonly modifiers in the signature
  • minor refactoring

…iew delegates and rare view delegates with ref parameters
…oducing a replacement algorithm to add required ref modifiers to the generated doc ID for the method
Copy link
Contributor

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

This PR fixes the handling of ref and out parameters in PXOverride method validation and XML documentation generation. The changes ensure that view delegates can accept either all regular parameters or all ref parameters, and that XML documentation comments correctly include parameter modifiers (ref, out, in, ref readonly) when referencing base methods.

Changes:

  • Fixed view delegate validation to allow either all regular parameters or all ref parameters
  • Corrected spelling of CanBeOverridden method name
  • Added logic to insert parameter modifiers in XML documentation comment IDs for methods with ref/out/in parameters
  • Added comprehensive test coverage for PXOverride methods with ref and out parameters

Reviewed changes

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

Show a summary per file
File Description
GraphSymbolUtils.cs Updated view delegate validation to support methods with all ref parameters
IMethodSymbolExtensions.cs Fixed spelling of CanBeOverridden method name
AcumaticaOverridesHelper.cs Updated method call to use corrected CanBeOverridden spelling
PXOverrideRefAndOutParametersWithoutXmlComment_Expected.cs Added expected test output for PXOverride methods with ref/out parameters
PXOverrideRefAndOutParametersWithoutXmlComment.cs Added test case for PXOverride methods with ref/out parameters
PXOverrideWithoutXmlCommentTests.cs Added test methods to verify ref/out parameter handling
PXOverrideAnalyzer.cs Implemented logic to generate correct XML doc comment IDs with parameter modifiers

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@SENya1990 SENya1990 merged commit 697a85b into dev Jan 20, 2026
@SENya1990 SENya1990 deleted the bugfix/ATR-939-dev-PX1098-code-fix-handle-out-and-ref-parameters branch January 20, 2026 13:53
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