Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(c_sharp) add @assignment support for all possible assignable statements #718

Closed

Conversation

prashanthsp6498
Copy link

Supports for all assignment statements.

Lambda Method

    public static string Method() => $"return result";

class/struct/record fields

    const int CONST_FIELD = 10;
    public static Node head;
    public static Node tempHead = new Node();

local variables declarations

    int count = 10;
    int[] arr = new int[] {1, 2, 3, 4, 5, 6};
    head = new Node{data = arr[0]};
    count = 100;

Above local fields also support in field scope

…ements

Supports for all assignment statements.

Lambda Method
```cs
    public static string Method() => $"return result";
```

class/struct/record fields
```cs
    const int CONST_FIELD = 10;
    public static Node head;
    public static Node tempHead = new Node();

```

local variables declarations
```cs
    int count = 10;
    int[] arr = new int[] {1, 2, 3, 4, 5, 6};
    head = new Node{data = arr[0]};
    count = 100;
```
Above local fields also support in field scope
@prashanthsp6498 prashanthsp6498 changed the title feat(c_sharp) add assignment support for all possible assignable statements feat(c_sharp) add @assignment support for all possible assignable statements Nov 21, 2024
@prashanthsp6498 prashanthsp6498 marked this pull request as draft November 21, 2024 19:02
@prashanthsp6498 prashanthsp6498 marked this pull request as ready for review November 21, 2024 19:05
@prashanthsp6498
Copy link
Author

Can anyone help me on this
Why above test failing?

@prashanthsp6498 prashanthsp6498 marked this pull request as draft November 22, 2024 10:53
@prashanthsp6498 prashanthsp6498 marked this pull request as ready for review November 22, 2024 10:54
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.

1 participant