Closed BadIdeaException closed 8 years ago
Hi,
I've added a FAQ entry on this issue.
You've either change your code as follows
/**
* @ngdoc method
* @name foo#bar
* @description
* Does important bar stuff on foo and will only be present if `readOnly` flag isn't set
**/
function foorBar() {
// blabla
}
foo.bar = !options.readOnly && fooBar;
or add matcher for LogicaExpression
or IfExpression' to handle this issue,
dgeni-packages/jsdoc` module assumes that there's a formal API and tries to match 'subjective' codepoints.
With this code
I get the following output when running the grunt task:
If I replace the assignment with
if (!options.readOnly) foo.bar = ...
, I instead getI've been able to trace it to function
findCodeName
inpackages/jsdoc-ext/services/code-name.js
.