{"action":"created","comment":{"url":"https://api.github.com/repos/mono/CppSharp/pulls/comments/31112498","id":31112498,"diff_hunk":"@@ -34,11 +34,27 @@ public static class Helpers\n                 \"void\", \"partial\", \"yield\", \"where\"\n             };\n \n+        private static int numSafeIden = 0;","path":"src/Generator/Generators/CSharp/CSharpTextTemplate.cs","position":null,"original_position":4,"commit_id":"19fbecbb7032b3f48a89fefeec749dd4c58148f1","original_commit_id":"20a1972fd8da8cf66bf03ee02ebc1b859eb11b5b","user":{"login":"genuinelucifer","id":11402325,"avatar_url":"https://avatars.githubusercontent.com/u/11402325?v=3","gravatar_id":"","url":"https://api.github.com/users/genuinelucifer","html_url":"https://github.com/genuinelucifer","followers_url":"https://api.github.com/users/genuinelucifer/followers","following_url":"https://api.github.com/users/genuinelucifer/following{/other_user}","gists_url":"https://api.github.com/users/genuinelucifer/gists{/gist_id}","starred_url":"https://api.github.com/users/genuinelucifer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genuinelucifer/subscriptions","organizations_url":"https://api.github.com/users/genuinelucifer/orgs","repos_url":"https://api.github.com/users/genuinelucifer/repos","events_url":"https://api.github.com/users/genuinelucifer/events{/privacy}","received_events_url":"https://api.github.com/users/genuinelucifer/received_events","type":"User","site_admin":false},"body":"I guess now it is taken care of. Please review.","created_at":"2015-05-27T08:29:46Z","updated_at":"2015-05-27T08:29:46Z","html_url":"https://github.com/mono/CppSharp/pull/451#discussion_r31112498","pull_request_url":"https://api.github.com/repos/mono/CppSharp/pulls/451","_links":{"self":{"href":"https://api.github.com/repos/mono/CppSharp/pulls/comments/31112498"},"html":{"href":"https://github.com/mono/CppSharp/pull/451#discussion_r31112498"},"pull_request":{"href":"https://api.github.com/repos/mono/CppSharp/pulls/451"}}},"pull_request":{"url":"https://api.github.com/repos/mono/CppSharp/pulls/451","id":36141183,"html_url":"https://github.com/mono/CppSharp/pull/451","diff_url":"https://github.com/mono/CppSharp/pull/451.diff","patch_url":"https://github.com/mono/CppSharp/pull/451.patch","issue_url":"https://api.github.com/repos/mono/CppSharp/issues/451","number":451,"state":"open","locked":false,"title":"Fixed compilation issues when nesting more than one anonymous types.","user":{"login":"genuinelucifer","id":11402325,"avatar_url":"https://avatars.githubusercontent.com/u/11402325?v=3","gravatar_id":"","url":"https://api.github.com/users/genuinelucifer","html_url":"https://github.com/genuinelucifer","followers_url":"https://api.github.com/users/genuinelucifer/followers","following_url":"https://api.github.com/users/genuinelucifer/following{/other_user}","gists_url":"https://api.github.com/users/genuinelucifer/gists{/gist_id}","starred_url":"https://api.github.com/users/genuinelucifer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genuinelucifer/subscriptions","organizations_url":"https://api.github.com/users/genuinelucifer/orgs","repos_url":"https://api.github.com/users/genuinelucifer/repos","events_url":"https://api.github.com/users/genuinelucifer/events{/privacy}","received_events_url":"https://api.github.com/users/genuinelucifer/received_events","type":"User","site_admin":false},"body":"The [double underscore] identifier was generated for anonymous types and hence resulted in conflict when nesting more than one anonymous types.\r\nI checked if an identifier had just '_' in it then i repeated the underscore 'numSafeIden' times which kept track of how many times such identifier has been generated.\r\n.\r\nAlternate solution (probably more elegant) can be if [double underscore] was to be suffixed with integer 'numSafeIden' instead of repeating the underscore so many times.","created_at":"2015-05-25T13:57:30Z","updated_at":"2015-05-27T08:29:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5920d39f585ecf3e56fae0c1fe016ad1cecf0fa5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mono/CppSharp/pulls/451/commits","review_comments_url":"https://api.github.com/repos/mono/CppSharp/pulls/451/comments","review_comment_url":"https://api.github.com/repos/mono/CppSharp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mono/CppSharp/issues/451/comments","statuses_url":"https://api.github.com/repos/mono/CppSharp/statuses/19fbecbb7032b3f48a89fefeec749dd4c58148f1","head":{"label":"genuinelucifer:anon_types","ref":"anon_types","sha":"19fbecbb7032b3f48a89fefeec749dd4c58148f1","user":{"login":"genuinelucifer","id":11402325,"avatar_url":"https://avatars.githubusercontent.com/u/11402325?v=3","gravatar_id":"","url":"https://api.github.com/users/genuinelucifer","html_url":"https://github.com/genuinelucifer","followers_url":"https://api.github.com/users/genuinelucifer/followers","following_url":"https://api.github.com/users/genuinelucifer/following{/other_user}","gists_url":"https://api.github.com/users/genuinelucifer/gists{/gist_id}","starred_url":"https://api.github.com/users/genuinelucifer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genuinelucifer/subscriptions","organizations_url":"https://api.github.com/users/genuinelucifer/orgs","repos_url":"https://api.github.com/users/genuinelucifer/repos","events_url":"https://api.github.com/users/genuinelucifer/events{/privacy}","received_events_url":"https://api.github.com/users/genuinelucifer/received_events","type":"User","site_admin":false},"repo":{"id":35488262,"name":"CppSharp","full_name":"genuinelucifer/CppSharp","owner":{"login":"genuinelucifer","id":11402325,"avatar_url":"https://avatars.githubusercontent.com/u/11402325?v=3","gravatar_id":"","url":"https://api.github.com/users/genuinelucifer","html_url":"https://github.com/genuinelucifer","followers_url":"https://api.github.com/users/genuinelucifer/followers","following_url":"https://api.github.com/users/genuinelucifer/following{/other_user}","gists_url":"https://api.github.com/users/genuinelucifer/gists{/gist_id}","starred_url":"https://api.github.com/users/genuinelucifer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genuinelucifer/subscriptions","organizations_url":"https://api.github.com/users/genuinelucifer/orgs","repos_url":"https://api.github.com/users/genuinelucifer/repos","events_url":"https://api.github.com/users/genuinelucifer/events{/privacy}","received_events_url":"https://api.github.com/users/genuinelucifer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/genuinelucifer/CppSharp","description":"Tools to surface C++ APIs to C#","fork":true,"url":"https://api.github.com/repos/genuinelucifer/CppSharp","forks_url":"https://api.github.com/repos/genuinelucifer/CppSharp/forks","keys_url":"https://api.github.com/repos/genuinelucifer/CppSharp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/genuinelucifer/CppSharp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/genuinelucifer/CppSharp/teams","hooks_url":"https://api.github.com/repos/genuinelucifer/CppSharp/hooks","issue_events_url":"https://api.github.com/repos/genuinelucifer/CppSharp/issues/events{/number}","events_url":"https://api.github.com/repos/genuinelucifer/CppSharp/events","assignees_url":"https://api.github.com/repos/genuinelucifer/CppSharp/assignees{/user}","branches_url":"https://api.github.com/repos/genuinelucifer/CppSharp/branches{/branch}","tags_url":"https://api.github.com/repos/genuinelucifer/CppSharp/tags","blobs_url":"https://api.github.com/repos/genuinelucifer/CppSharp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/genuinelucifer/CppSharp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/genuinelucifer/CppSharp/git/refs{/sha}","trees_url":"https://api.github.com/repos/genuinelucifer/CppSharp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/genuinelucifer/CppSharp/statuses/{sha}","languages_url":"https://api.github.com/repos/genuinelucifer/CppSharp/languages","stargazers_url":"https://api.github.com/repos/genuinelucifer/CppSharp/stargazers","contributors_url":"https://api.github.com/repos/genuinelucifer/CppSharp/contributors","subscribers_url":"https://api.github.com/repos/genuinelucifer/CppSharp/subscribers","subscription_url":"https://api.github.com/repos/genuinelucifer/CppSharp/subscription","commits_url":"https://api.github.com/repos/genuinelucifer/CppSharp/commits{/sha}","git_commits_url":"https://api.github.com/repos/genuinelucifer/CppSharp/git/commits{/sha}","comments_url":"https://api.github.com/repos/genuinelucifer/CppSharp/comments{/number}","issue_comment_url":"https://api.github.com/repos/genuinelucifer/CppSharp/issues/comments{/number}","contents_url":"https://api.github.com/repos/genuinelucifer/CppSharp/contents/{+path}","compare_url":"https://api.github.com/repos/genuinelucifer/CppSharp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/genuinelucifer/CppSharp/merges","archive_url":"https://api.github.com/repos/genuinelucifer/CppSharp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/genuinelucifer/CppSharp/downloads","issues_url":"https://api.github.com/repos/genuinelucifer/CppSharp/issues{/number}","pulls_url":"https://api.github.com/repos/genuinelucifer/CppSharp/pulls{/number}","milestones_url":"https://api.github.com/repos/genuinelucifer/CppSharp/milestones{/number}","notifications_url":"https://api.github.com/repos/genuinelucifer/CppSharp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/genuinelucifer/CppSharp/labels{/name}","releases_url":"https://api.github.com/repos/genuinelucifer/CppSharp/releases{/id}","created_at":"2015-05-12T13:05:40Z","updated_at":"2015-05-12T13:05:41Z","pushed_at":"2015-05-27T08:28:30Z","git_url":"git://github.com/genuinelucifer/CppSharp.git","ssh_url":"git@github.com:genuinelucifer/CppSharp.git","clone_url":"https://github.com/genuinelucifer/CppSharp.git","svn_url":"https://github.com/genuinelucifer/CppSharp","homepage":null,"size":12174,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mono:master","ref":"master","sha":"e0140e2e1a3f3634c36e2d2f9d8a97dc51cccdf2","user":{"login":"mono","id":53395,"avatar_url":"https://avatars.githubusercontent.com/u/53395?v=3","gravatar_id":"","url":"https://api.github.com/users/mono","html_url":"https://github.com/mono","followers_url":"https://api.github.com/users/mono/followers","following_url":"https://api.github.com/users/mono/following{/other_user}","gists_url":"https://api.github.com/users/mono/gists{/gist_id}","starred_url":"https://api.github.com/users/mono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mono/subscriptions","organizations_url":"https://api.github.com/users/mono/orgs","repos_url":"https://api.github.com/users/mono/repos","events_url":"https://api.github.com/users/mono/events{/privacy}","received_events_url":"https://api.github.com/users/mono/received_events","type":"Organization","site_admin":false},"repo":{"id":9988318,"name":"CppSharp","full_name":"mono/CppSharp","owner":{"login":"mono","id":53395,"avatar_url":"https://avatars.githubusercontent.com/u/53395?v=3","gravatar_id":"","url":"https://api.github.com/users/mono","html_url":"https://github.com/mono","followers_url":"https://api.github.com/users/mono/followers","following_url":"https://api.github.com/users/mono/following{/other_user}","gists_url":"https://api.github.com/users/mono/gists{/gist_id}","starred_url":"https://api.github.com/users/mono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mono/subscriptions","organizations_url":"https://api.github.com/users/mono/orgs","repos_url":"https://api.github.com/users/mono/repos","events_url":"https://api.github.com/users/mono/events{/privacy}","received_events_url":"https://api.github.com/users/mono/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mono/CppSharp","description":"Tools to surface C++ APIs to C#","fork":false,"url":"https://api.github.com/repos/mono/CppSharp","forks_url":"https://api.github.com/repos/mono/CppSharp/forks","keys_url":"https://api.github.com/repos/mono/CppSharp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mono/CppSharp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mono/CppSharp/teams","hooks_url":"https://api.github.com/repos/mono/CppSharp/hooks","issue_events_url":"https://api.github.com/repos/mono/CppSharp/issues/events{/number}","events_url":"https://api.github.com/repos/mono/CppSharp/events","assignees_url":"https://api.github.com/repos/mono/CppSharp/assignees{/user}","branches_url":"https://api.github.com/repos/mono/CppSharp/branches{/branch}","tags_url":"https://api.github.com/repos/mono/CppSharp/tags","blobs_url":"https://api.github.com/repos/mono/CppSharp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mono/CppSharp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mono/CppSharp/git/refs{/sha}","trees_url":"https://api.github.com/repos/mono/CppSharp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mono/CppSharp/statuses/{sha}","languages_url":"https://api.github.com/repos/mono/CppSharp/languages","stargazers_url":"https://api.github.com/repos/mono/CppSharp/stargazers","contributors_url":"https://api.github.com/repos/mono/CppSharp/contributors","subscribers_url":"https://api.github.com/repos/mono/CppSharp/subscribers","subscription_url":"https://api.github.com/repos/mono/CppSharp/subscription","commits_url":"https://api.github.com/repos/mono/CppSharp/commits{/sha}","git_commits_url":"https://api.github.com/repos/mono/CppSharp/git/commits{/sha}","comments_url":"https://api.github.com/repos/mono/CppSharp/comments{/number}","issue_comment_url":"https://api.github.com/repos/mono/CppSharp/issues/comments{/number}","contents_url":"https://api.github.com/repos/mono/CppSharp/contents/{+path}","compare_url":"https://api.github.com/repos/mono/CppSharp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mono/CppSharp/merges","archive_url":"https://api.github.com/repos/mono/CppSharp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mono/CppSharp/downloads","issues_url":"https://api.github.com/repos/mono/CppSharp/issues{/number}","pulls_url":"https://api.github.com/repos/mono/CppSharp/pulls{/number}","milestones_url":"https://api.github.com/repos/mono/CppSharp/milestones{/number}","notifications_url":"https://api.github.com/repos/mono/CppSharp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mono/CppSharp/labels{/name}","releases_url":"https://api.github.com/repos/mono/CppSharp/releases{/id}","created_at":"2013-05-10T19:00:56Z","updated_at":"2015-05-23T19:12:09Z","pushed_at":"2015-05-27T08:28:31Z","git_url":"git://github.com/mono/CppSharp.git","ssh_url":"git@github.com:mono/CppSharp.git","clone_url":"https://github.com/mono/CppSharp.git","svn_url":"https://github.com/mono/CppSharp","homepage":null,"size":18746,"stargazers_count":274,"watchers_count":274,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":68,"mirror_url":null,"open_issues_count":46,"forks":68,"open_issues":46,"watchers":274,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mono/CppSharp/pulls/451"},"html":{"href":"https://github.com/mono/CppSharp/pull/451"},"issue":{"href":"https://api.github.com/repos/mono/CppSharp/issues/451"},"comments":{"href":"https://api.github.com/repos/mono/CppSharp/issues/451/comments"},"review_comments":{"href":"https://api.github.com/repos/mono/CppSharp/pulls/451/comments"},"review_comment":{"href":"https://api.github.com/repos/mono/CppSharp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mono/CppSharp/pulls/451/commits"},"statuses":{"href":"https://api.github.com/repos/mono/CppSharp/statuses/19fbecbb7032b3f48a89fefeec749dd4c58148f1"}}}}