{"action":"created","comment":{"url":"https://api.github.com/repos/apiaryio/drafter/pulls/comments/42274800","id":42274800,"diff_hunk":"@@ -177,15 +213,18 @@ namespace drafter {\n     }\n \n     template<typename T>\n-    refract::IElement* ExtractParameter(const snowcrash::Parameter& parameter)\n+    refract::IElement* ExtractParameter(const SectionInfo<snowcrash::Parameter>& parameter)\n     {\n         refract::IElement* element = NULL;\n \n-        if (parameter.values.empty()) {\n-            element = refract::IElement::Create(LiteralTo<T>(parameter.exampleValue));\n+        if (parameter.section.values.empty()) {\n+            element = refract::IElement::Create(LiteralTo<T>(parameter.section.exampleValue));\n+            AttachSourceMap(element, MAKE_SECTION_INFO(parameter, exampleValue));","path":"src/RefractAPI.cc","position":177,"original_position":177,"commit_id":"96f18f308173dfafaec0e42d5e106dc4f32352dd","original_commit_id":"96f18f308173dfafaec0e42d5e106dc4f32352dd","user":{"login":"pksunkara","id":174703,"avatar_url":"https://avatars.githubusercontent.com/u/174703?v=3","gravatar_id":"","url":"https://api.github.com/users/pksunkara","html_url":"https://github.com/pksunkara","followers_url":"https://api.github.com/users/pksunkara/followers","following_url":"https://api.github.com/users/pksunkara/following{/other_user}","gists_url":"https://api.github.com/users/pksunkara/gists{/gist_id}","starred_url":"https://api.github.com/users/pksunkara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pksunkara/subscriptions","organizations_url":"https://api.github.com/users/pksunkara/orgs","repos_url":"https://api.github.com/users/pksunkara/repos","events_url":"https://api.github.com/users/pksunkara/events{/privacy}","received_events_url":"https://api.github.com/users/pksunkara/received_events","type":"User","site_admin":false},"body":"Couldn't you have used `LiteralToRefract` for the above two lines?","created_at":"2015-10-16T18:32:02Z","updated_at":"2015-10-16T18:32:02Z","html_url":"https://github.com/apiaryio/drafter/pull/148#discussion_r42274800","pull_request_url":"https://api.github.com/repos/apiaryio/drafter/pulls/148","_links":{"self":{"href":"https://api.github.com/repos/apiaryio/drafter/pulls/comments/42274800"},"html":{"href":"https://github.com/apiaryio/drafter/pull/148#discussion_r42274800"},"pull_request":{"href":"https://api.github.com/repos/apiaryio/drafter/pulls/148"}}},"pull_request":{"url":"https://api.github.com/repos/apiaryio/drafter/pulls/148","id":47891858,"html_url":"https://github.com/apiaryio/drafter/pull/148","diff_url":"https://github.com/apiaryio/drafter/pull/148.diff","patch_url":"https://github.com/apiaryio/drafter/pull/148.patch","issue_url":"https://api.github.com/repos/apiaryio/drafter/issues/148","number":148,"state":"open","locked":false,"title":"Source map support for Refract","user":{"login":"klokane","id":489973,"avatar_url":"https://avatars.githubusercontent.com/u/489973?v=3","gravatar_id":"","url":"https://api.github.com/users/klokane","html_url":"https://github.com/klokane","followers_url":"https://api.github.com/users/klokane/followers","following_url":"https://api.github.com/users/klokane/following{/other_user}","gists_url":"https://api.github.com/users/klokane/gists{/gist_id}","starred_url":"https://api.github.com/users/klokane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klokane/subscriptions","organizations_url":"https://api.github.com/users/klokane/orgs","repos_url":"https://api.github.com/users/klokane/repos","events_url":"https://api.github.com/users/klokane/events{/privacy}","received_events_url":"https://api.github.com/users/klokane/received_events","type":"User","site_admin":false},"body":"Missing feature - switch sourcemaps on command line, working on. Will be deliveret in individual PR\r\n","created_at":"2015-10-16T10:03:27Z","updated_at":"2015-10-16T18:32:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bb4b518a230edb067b5d25228484e614a77ac8b3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apiaryio/drafter/pulls/148/commits","review_comments_url":"https://api.github.com/repos/apiaryio/drafter/pulls/148/comments","review_comment_url":"https://api.github.com/repos/apiaryio/drafter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apiaryio/drafter/issues/148/comments","statuses_url":"https://api.github.com/repos/apiaryio/drafter/statuses/96f18f308173dfafaec0e42d5e106dc4f32352dd","head":{"label":"apiaryio:klokane/source-maps-rebase","ref":"klokane/source-maps-rebase","sha":"96f18f308173dfafaec0e42d5e106dc4f32352dd","user":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"repo":{"id":30541396,"name":"drafter","full_name":"apiaryio/drafter","owner":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apiaryio/drafter","description":"Snow Crash parser harness","fork":false,"url":"https://api.github.com/repos/apiaryio/drafter","forks_url":"https://api.github.com/repos/apiaryio/drafter/forks","keys_url":"https://api.github.com/repos/apiaryio/drafter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apiaryio/drafter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apiaryio/drafter/teams","hooks_url":"https://api.github.com/repos/apiaryio/drafter/hooks","issue_events_url":"https://api.github.com/repos/apiaryio/drafter/issues/events{/number}","events_url":"https://api.github.com/repos/apiaryio/drafter/events","assignees_url":"https://api.github.com/repos/apiaryio/drafter/assignees{/user}","branches_url":"https://api.github.com/repos/apiaryio/drafter/branches{/branch}","tags_url":"https://api.github.com/repos/apiaryio/drafter/tags","blobs_url":"https://api.github.com/repos/apiaryio/drafter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apiaryio/drafter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apiaryio/drafter/git/refs{/sha}","trees_url":"https://api.github.com/repos/apiaryio/drafter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apiaryio/drafter/statuses/{sha}","languages_url":"https://api.github.com/repos/apiaryio/drafter/languages","stargazers_url":"https://api.github.com/repos/apiaryio/drafter/stargazers","contributors_url":"https://api.github.com/repos/apiaryio/drafter/contributors","subscribers_url":"https://api.github.com/repos/apiaryio/drafter/subscribers","subscription_url":"https://api.github.com/repos/apiaryio/drafter/subscription","commits_url":"https://api.github.com/repos/apiaryio/drafter/commits{/sha}","git_commits_url":"https://api.github.com/repos/apiaryio/drafter/git/commits{/sha}","comments_url":"https://api.github.com/repos/apiaryio/drafter/comments{/number}","issue_comment_url":"https://api.github.com/repos/apiaryio/drafter/issues/comments{/number}","contents_url":"https://api.github.com/repos/apiaryio/drafter/contents/{+path}","compare_url":"https://api.github.com/repos/apiaryio/drafter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apiaryio/drafter/merges","archive_url":"https://api.github.com/repos/apiaryio/drafter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apiaryio/drafter/downloads","issues_url":"https://api.github.com/repos/apiaryio/drafter/issues{/number}","pulls_url":"https://api.github.com/repos/apiaryio/drafter/pulls{/number}","milestones_url":"https://api.github.com/repos/apiaryio/drafter/milestones{/number}","notifications_url":"https://api.github.com/repos/apiaryio/drafter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apiaryio/drafter/labels{/name}","releases_url":"https://api.github.com/repos/apiaryio/drafter/releases{/id}","created_at":"2015-02-09T15:05:57Z","updated_at":"2015-10-15T19:38:08Z","pushed_at":"2015-10-16T12:37:23Z","git_url":"git://github.com/apiaryio/drafter.git","ssh_url":"git@github.com:apiaryio/drafter.git","clone_url":"https://github.com/apiaryio/drafter.git","svn_url":"https://github.com/apiaryio/drafter","homepage":"","size":2100,"stargazers_count":70,"watchers_count":70,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":20,"forks":19,"open_issues":20,"watchers":70,"default_branch":"master"}},"base":{"label":"apiaryio:master","ref":"master","sha":"f4bb73b7d4dd25b12615c9f4a49f9f6b042dbab6","user":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"repo":{"id":30541396,"name":"drafter","full_name":"apiaryio/drafter","owner":{"login":"apiaryio","id":765943,"avatar_url":"https://avatars.githubusercontent.com/u/765943?v=3","gravatar_id":"","url":"https://api.github.com/users/apiaryio","html_url":"https://github.com/apiaryio","followers_url":"https://api.github.com/users/apiaryio/followers","following_url":"https://api.github.com/users/apiaryio/following{/other_user}","gists_url":"https://api.github.com/users/apiaryio/gists{/gist_id}","starred_url":"https://api.github.com/users/apiaryio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apiaryio/subscriptions","organizations_url":"https://api.github.com/users/apiaryio/orgs","repos_url":"https://api.github.com/users/apiaryio/repos","events_url":"https://api.github.com/users/apiaryio/events{/privacy}","received_events_url":"https://api.github.com/users/apiaryio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apiaryio/drafter","description":"Snow Crash parser harness","fork":false,"url":"https://api.github.com/repos/apiaryio/drafter","forks_url":"https://api.github.com/repos/apiaryio/drafter/forks","keys_url":"https://api.github.com/repos/apiaryio/drafter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apiaryio/drafter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apiaryio/drafter/teams","hooks_url":"https://api.github.com/repos/apiaryio/drafter/hooks","issue_events_url":"https://api.github.com/repos/apiaryio/drafter/issues/events{/number}","events_url":"https://api.github.com/repos/apiaryio/drafter/events","assignees_url":"https://api.github.com/repos/apiaryio/drafter/assignees{/user}","branches_url":"https://api.github.com/repos/apiaryio/drafter/branches{/branch}","tags_url":"https://api.github.com/repos/apiaryio/drafter/tags","blobs_url":"https://api.github.com/repos/apiaryio/drafter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apiaryio/drafter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apiaryio/drafter/git/refs{/sha}","trees_url":"https://api.github.com/repos/apiaryio/drafter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apiaryio/drafter/statuses/{sha}","languages_url":"https://api.github.com/repos/apiaryio/drafter/languages","stargazers_url":"https://api.github.com/repos/apiaryio/drafter/stargazers","contributors_url":"https://api.github.com/repos/apiaryio/drafter/contributors","subscribers_url":"https://api.github.com/repos/apiaryio/drafter/subscribers","subscription_url":"https://api.github.com/repos/apiaryio/drafter/subscription","commits_url":"https://api.github.com/repos/apiaryio/drafter/commits{/sha}","git_commits_url":"https://api.github.com/repos/apiaryio/drafter/git/commits{/sha}","comments_url":"https://api.github.com/repos/apiaryio/drafter/comments{/number}","issue_comment_url":"https://api.github.com/repos/apiaryio/drafter/issues/comments{/number}","contents_url":"https://api.github.com/repos/apiaryio/drafter/contents/{+path}","compare_url":"https://api.github.com/repos/apiaryio/drafter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apiaryio/drafter/merges","archive_url":"https://api.github.com/repos/apiaryio/drafter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apiaryio/drafter/downloads","issues_url":"https://api.github.com/repos/apiaryio/drafter/issues{/number}","pulls_url":"https://api.github.com/repos/apiaryio/drafter/pulls{/number}","milestones_url":"https://api.github.com/repos/apiaryio/drafter/milestones{/number}","notifications_url":"https://api.github.com/repos/apiaryio/drafter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apiaryio/drafter/labels{/name}","releases_url":"https://api.github.com/repos/apiaryio/drafter/releases{/id}","created_at":"2015-02-09T15:05:57Z","updated_at":"2015-10-15T19:38:08Z","pushed_at":"2015-10-16T12:37:23Z","git_url":"git://github.com/apiaryio/drafter.git","ssh_url":"git@github.com:apiaryio/drafter.git","clone_url":"https://github.com/apiaryio/drafter.git","svn_url":"https://github.com/apiaryio/drafter","homepage":"","size":2100,"stargazers_count":70,"watchers_count":70,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":20,"forks":19,"open_issues":20,"watchers":70,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apiaryio/drafter/pulls/148"},"html":{"href":"https://github.com/apiaryio/drafter/pull/148"},"issue":{"href":"https://api.github.com/repos/apiaryio/drafter/issues/148"},"comments":{"href":"https://api.github.com/repos/apiaryio/drafter/issues/148/comments"},"review_comments":{"href":"https://api.github.com/repos/apiaryio/drafter/pulls/148/comments"},"review_comment":{"href":"https://api.github.com/repos/apiaryio/drafter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apiaryio/drafter/pulls/148/commits"},"statuses":{"href":"https://api.github.com/repos/apiaryio/drafter/statuses/96f18f308173dfafaec0e42d5e106dc4f32352dd"}}}}