coffeedoc / codo

CoffeeScript API documentation generator. It's like YARD but for CoffeeScript!
Other
624 stars 92 forks source link

Virtual methods aren't detected #249

Closed glum-psyche closed 7 years ago

glum-psyche commented 7 years ago

Hi all!

I have an issue for you. When I declare virtual methods like here they are not detected:

# This class has virtual methods, which doesn't
# exist in the source but appears in the documentation.
#
# @method #set(key, value)
#   Sets a value
#   @param [String] key describe key param
#   @param [Object] value describe value param
#   @option value [String] string
#   @option value [Integer] number
#   @option value [Object] whatever
#
# @method .get(key)
#   Gets a value
#   @param [String] key describe key param
#   @return [Object] describe value param
#
# @method #delete({key, passion}, foo='bar')
#   Deletes a key from the data.
#
#   Another line
#
#   @param [String] key describe key param
#
#   @example Delete a key.
#     emv = new Example.Methods.Virtual
#     emv.set 'foo', 'bar'
#     val = emv.get 'foo'
#
#     # now, proclaim you're done with foo.
#     emv.delete 'foo'
#
# This line should be part of the class description, and the method declaration
# shouldn't have messed it up.
#
class Example.Methods.Virtual

Generated HTML page contains class overview but nothing mentioned about class/instance methods at all.

This issue is occurred since version 2.1.0 (and still actual for 2.1.2), but 2.0.11 works fine.

steel commented 7 years ago

I just noticed this as well.