{"action":"opened","issue":{"url":"https://api.github.com/repos/sircodesalotOfTheRound/verba/issues/201","labels_url":"https://api.github.com/repos/sircodesalotOfTheRound/verba/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/sircodesalotOfTheRound/verba/issues/201/comments","events_url":"https://api.github.com/repos/sircodesalotOfTheRound/verba/issues/201/events","html_url":"https://github.com/sircodesalotOfTheRound/verba/issues/201","id":63026132,"number":201,"title":"Refactor VerbaSourceCodeFile namespace information.","user":{"login":"sircodesalotOfTheRound","id":4482959,"avatar_url":"https://avatars.githubusercontent.com/u/4482959?v=3","gravatar_id":"","url":"https://api.github.com/users/sircodesalotOfTheRound","html_url":"https://github.com/sircodesalotOfTheRound","followers_url":"https://api.github.com/users/sircodesalotOfTheRound/followers","following_url":"https://api.github.com/users/sircodesalotOfTheRound/following{/other_user}","gists_url":"https://api.github.com/users/sircodesalotOfTheRound/gists{/gist_id}","starred_url":"https://api.github.com/users/sircodesalotOfTheRound/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sircodesalotOfTheRound/subscriptions","organizations_url":"https://api.github.com/users/sircodesalotOfTheRound/orgs","repos_url":"https://api.github.com/users/sircodesalotOfTheRound/repos","events_url":"https://api.github.com/users/sircodesalotOfTheRound/events{/privacy}","received_events_url":"https://api.github.com/users/sircodesalotOfTheRound/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-19T16:08:57Z","updated_at":"2015-03-19T16:08:57Z","closed_at":null,"body":"Currently this code is in a single block that is run after parse:\r\n\r\n```\r\n  @Override\r\n  public void afterContentsParsed(Build build) {\r\n    QIterable<String> namespaceRepresentations = this\r\n      .expressionsByType(WithNsExpression.class)\r\n      .map(ns -> ns.namespace().representation());\r\n\r\n    this.namespaces.add(namespaceRepresentations);\r\n  }\r\n```\r\n\r\nIdeally it would be better to refactor this into an immutable class."}}