Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Missing comma node during ArrayInitializerExpression parsing in Dictionary initialization #498

Open
KvanTTT opened this issue Jul 5, 2015 · 0 comments

Comments

@KvanTTT
Copy link

KvanTTT commented Jul 5, 2015

I parsed the following code:

int[] dict = new int[] { 3, 5 };

And got the following Node:

ArrayInitializerExpression: CSharpTokenNode ({) Expression (3) CSharpTokenNode (,) Expression (5) CSharpTokenNode (})

But when I parse the following code:

Dictionary<int, int> dict = new Dictionary<int, int>() { { 3, 5 } };

I get the following Node:

ArrayInitializerExpression: CSharpTokenNode ({) Expression (3) Expression (5) CSharpTokenNode (})

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant