From a11810390f195a7c052951eef735ad500cedb70e Mon Sep 17 00:00:00 2001 From: ben hockey Date: Fri, 22 Mar 2013 22:58:07 -0500 Subject: [PATCH] it's possible that return types might reference annotated objects --- lib/processor/dojodoc.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/processor/dojodoc.js b/lib/processor/dojodoc.js index 5c0ad8a..d8ef47a 100644 --- a/lib/processor/dojodoc.js +++ b/lib/processor/dojodoc.js @@ -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