Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@martindevans
Copy link
Contributor

@martindevans martindevans commented Jun 23, 2025

Alternative to #58, adding a GetIndex() function instead of using a property.

Copilot AI review requested due to automatic review settings June 23, 2025 01:00
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 pull request introduces GetIndex() accessor methods as an alternative to using properties in global variable instructions. The key changes include adding GetIndex() in both InstGlobalGet and InstGlobalSet classes to provide direct access to the GlobalIdx field.

Comments suppressed due to low confidence (2)

Wacs.Core/Instructions/GlobalVariable.cs:34

  • [nitpick] Consider adding XML documentation for the GetIndex method to clarify its purpose and usage.
        public GlobalIdx GetIndex() => Index;

Wacs.Core/Instructions/GlobalVariable.cs:135

  • [nitpick] Consider adding XML documentation for the GetIndex method to clarify its purpose and usage.
        public GlobalIdx GetIndex() => Index;

@kelnishi kelnishi merged commit 1728096 into kelnishi:main Jun 26, 2025
1 check passed
@martindevans martindevans deleted the GetIndex_Accessor branch June 26, 2025 21:14
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.

2 participants