heavenshell / vim-jsdoc

Generate JSDoc to your JavaScript code.
BSD 3-Clause "New" or "Revised" License
452 stars 44 forks source link

Enable parameters in shorthand methods with es6 feature #38

Closed jacoborus closed 9 years ago

jacoborus commented 9 years ago

enable_es6 feature is not detecting parameters in shorthand class methods

In this method only it allows you to add a description and type to return value, not to parameter

class whatever {
  method (param) {
    // do something
  }
}
heavenshell commented 9 years ago

@jacoborus

class whatever {
  /**
   * method
   *
   * @param {number} param aaaa
   */
  method (param) {
  }
}

Works fine for me.

let g:jsdoc_enable_es6 = 1
let g:jsdoc_allow_input_prompt = 1
heavenshell commented 9 years ago

Please show me step to reproduce.

jacoborus commented 9 years ago

I'm sorry @heavenshell , my fault. I was trying to launch jsdoc from inside the function instead from its first line. Plugin works perfect =)

heavenshell commented 9 years ago

No problem :+1: