Skip to content
This repository was archived by the owner on Dec 31, 2017. It is now read-only.

it's possible that return types might reference annotated objects #79

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/processor/dojodoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,11 @@ define([
candidate = /^[^\n]*\/\/(.*?)\n/.exec(util.getSourceForRange(value.raw.range));

if (candidate) {
metadata = { type: trim(candidate[1]) };
value.evaluated.metadata.type = trim(candidate[1]);
processTypeAnnotation(value.evaluated.metadata);
}
// if we get here, we have no need to mixin any metadata
return;
}

// Function or object body
Expand Down