Comments (1)
Almost perfect, but sadly there is still an issue with multiple default values.
Working version:
/**
* @param {[[Type]]} [a=1] [[Description]]
* @param {[[Type]]} [b=2] [[Description]]
* @param {[[Type]]} [c=3] [[Description]]
*/
var func = function (a, b, c) {
'use strict';
if (typeof a === 'undefined') a = 1;
if (typeof b === 'undefined') b = 2;
if (typeof c === 'undefined') {
c = 3;
}
};
Current result:
/**
*
*/
var func = function (a, b, c) {
'use strict';
if (typeof a === 'undefined') a = 1;
if (typeof b === 'undefined') {
b = 2;
}
if (typeof c === 'undefined') {
c = 3;
}
};
Expected result:
/**
* @param {[[Type]]} [a=1] [[Description]]
* @param {[[Type]]} [b=2] [[Description]]
* @param {[[Type]]} [c=3] [[Description]]
*/
var func = function (a, b, c) {
'use strict';
if (typeof a === 'undefined') a = 1;
if (typeof b === 'undefined') {
b = 2;
}
if (typeof c === 'undefined') {
c = 3;
}
};
from brackets-funcdocr.
Related Issues (20)
- Running FuncDocr shouldn't instantly save the document
- Support exported functions HOT 4
- Add @author with array of authors, please HOT 10
- Lowercase types in JS HOT 1
- Greedy backspace behavior HOT 6
- How do I install this? HOT 1
- Use consistent indentation
- Support ES6 Default Parameters HOT 1
- /* triggers a JSDoc comment block instead of /** HOT 4
- Default value setting has to be the first line HOT 1
- @private tag HOT 7
- @since tag HOT 1
- Support generator function auto-completition HOT 2
- Named function expression with the key being a string is not recognized HOT 7
- Autocomplete for javascript @constructor
- Spurious logs HOT 4
- Install fails on brackets-electron HOT 1
- Not working in Brackets 1.9 HOT 3
- Add support for Typescript files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brackets-funcdocr.