{"action":"closed","issue":{"url":"https://api.github.com/repos/marijnh/tern/issues/473","labels_url":"https://api.github.com/repos/marijnh/tern/issues/473/labels{/name}","comments_url":"https://api.github.com/repos/marijnh/tern/issues/473/comments","events_url":"https://api.github.com/repos/marijnh/tern/issues/473/events","html_url":"https://github.com/marijnh/tern/issues/473","id":53611458,"number":473,"title":"How to manage !effect or !custom with simple property.","user":{"login":"angelozerr","id":1932211,"avatar_url":"https://avatars.githubusercontent.com/u/1932211?v=3","gravatar_id":"","url":"https://api.github.com/users/angelozerr","html_url":"https://github.com/angelozerr","followers_url":"https://api.github.com/users/angelozerr/followers","following_url":"https://api.github.com/users/angelozerr/following{/other_user}","gists_url":"https://api.github.com/users/angelozerr/gists{/gist_id}","starred_url":"https://api.github.com/users/angelozerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angelozerr/subscriptions","organizations_url":"https://api.github.com/users/angelozerr/orgs","repos_url":"https://api.github.com/users/angelozerr/repos","events_url":"https://api.github.com/users/angelozerr/events{/privacy}","received_events_url":"https://api.github.com/users/angelozerr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-07T09:07:55Z","updated_at":"2015-01-20T13:02:20Z","closed_at":"2015-01-20T13:02:20Z","body":"I'm writing a tern plugin for jasmine https://github.com/angelozerr/tern-jasmine \r\n\r\nI can manage this case : \r\n\r\n```javascript\r\nexpect(true).  // here Ctrl+Space must shows not, toBeDefined, etc\r\n```\r\n\r\nexpect is a function which returns a custom function (because jasmine matchers can be dynamic). \r\n\r\n```json\r\n\"expect\": {\r\n      \"!type\": \"fn(value: ?) -> !custom:jasmineExpect\",\r\n      \"!doc\": \"Expectations are built with the function expect which takes a value, called the actual. It is chained with a Matcher function, which takes the expected value.\"\r\n    },\r\n```\r\n\r\nSee https://github.com/angelozerr/tern-jasmine/blob/master/jasmine.js#L146\r\n\r\nThe `not` matcher must return the matchers list too like expect function (`not', 'toBeDefined', etc, So I have written :\r\n\r\n```json\r\n\"not\": {\r\n          \"!type\": \"!custom:jasmineExpect\",\r\n```\r\n\r\nBut as `not` matcher is a property and not a function, it doesn't work. \r\n\r\nI would like to manage that : \r\n\r\n```javascript\r\nexpect(true).not.  // here Ctrl+Space must shows not, toBeDefined, etc\r\n```\r\n@marijnh have you an idea how to I could manage not case?"}}