codeAndComment

  • function
 

documentjs.process.codeAndComment(options, callback)

Processes a code suggestion and then a comment and produces a docObject.

Parameters

  1. options {processOptions}

    An options object that contains the code and comment to process.

  2. callback {function(newDoc, newScope)}

    A function that is called back with a docObject created from the code and the scope docObject. If no docObject is created, newDoc will be null.