{"action":"created","issue":{"url":"https://api.github.com/repos/RomanYankovsky/DelphiAST/issues/59","labels_url":"https://api.github.com/repos/RomanYankovsky/DelphiAST/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/RomanYankovsky/DelphiAST/issues/59/comments","events_url":"https://api.github.com/repos/RomanYankovsky/DelphiAST/issues/59/events","html_url":"https://github.com/RomanYankovsky/DelphiAST/issues/59","id":62922337,"number":59,"title":"Method parameters default values not parsed","user":{"login":"polyaklaci","id":11552975,"avatar_url":"https://avatars.githubusercontent.com/u/11552975?v=3","gravatar_id":"","url":"https://api.github.com/users/polyaklaci","html_url":"https://github.com/polyaklaci","followers_url":"https://api.github.com/users/polyaklaci/followers","following_url":"https://api.github.com/users/polyaklaci/following{/other_user}","gists_url":"https://api.github.com/users/polyaklaci/gists{/gist_id}","starred_url":"https://api.github.com/users/polyaklaci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polyaklaci/subscriptions","organizations_url":"https://api.github.com/users/polyaklaci/orgs","repos_url":"https://api.github.com/users/polyaklaci/repos","events_url":"https://api.github.com/users/polyaklaci/events{/privacy}","received_events_url":"https://api.github.com/users/polyaklaci/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RomanYankovsky/DelphiAST/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-19T09:02:40Z","updated_at":"2015-03-19T19:00:40Z","closed_at":null,"body":"If a method has a parameter with a default value e.g.: \r\n```pascal\r\nfunction SomeMethod( a: Integer = 1 );\r\n```\r\nthe default value expression is not parsed by DelphiAST.\r\n\r\nSuggested enhancement ([+] : added, [o] : original):\r\n```pascal\r\nfunction TPasSyntaxTreeBuilder.FormalParameterList;\r\n[o] var\r\n...\r\n[+] ParamExpr: TSyntaxNode;\r\n...\r\n[o] ParamKind := ParamList.GetAttribute('kind');\r\n[+] ParamExpr := ParamList.FindNode(sEXPRESSION);\r\n...\r\n[o] if Assigned(TypeInfo) then\r\n[o]   FStack.AddChild(TypeInfo.Clone);\r\n[o]\r\n[+] if Assigned(ParamExpr) then\r\n[+]   FStack.AddChild(ParamExpr.Clone);\r\n...\r\n```"},"comment":{"url":"https://api.github.com/repos/RomanYankovsky/DelphiAST/issues/comments/83718872","html_url":"https://github.com/RomanYankovsky/DelphiAST/issues/59#issuecomment-83718872","issue_url":"https://api.github.com/repos/RomanYankovsky/DelphiAST/issues/59","id":83718872,"user":{"login":"polyaklaci","id":11552975,"avatar_url":"https://avatars.githubusercontent.com/u/11552975?v=3","gravatar_id":"","url":"https://api.github.com/users/polyaklaci","html_url":"https://github.com/polyaklaci","followers_url":"https://api.github.com/users/polyaklaci/followers","following_url":"https://api.github.com/users/polyaklaci/following{/other_user}","gists_url":"https://api.github.com/users/polyaklaci/gists{/gist_id}","starred_url":"https://api.github.com/users/polyaklaci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/polyaklaci/subscriptions","organizations_url":"https://api.github.com/users/polyaklaci/orgs","repos_url":"https://api.github.com/users/polyaklaci/repos","events_url":"https://api.github.com/users/polyaklaci/events{/privacy}","received_events_url":"https://api.github.com/users/polyaklaci/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T19:00:40Z","updated_at":"2015-03-19T19:00:40Z","body":"I modified the [+] var to **ParamExpr: TSyntaxNode;** because originally I wrote an existing  line (\"TypeInfo\", which is already in the var list)..."}}