Fwd: [closure-compiler-discuss] Suppress warnings for optional arguments being at the end?

46 views
Skip to first unread message

John Lenz

unread,
Oct 26, 2010, 8:38:57 PM10/26/10
to closure-temp...@googlegroups.com
+closure-templates-discuss

soyutil.js seems to be missing the optional and var_arg parameter annotations.  Any chance of getting that fixed up?



---------- Forwarded message ----------
From: Derek Thurn <dth...@gmail.com>
Date: Tue, Oct 26, 2010 at 5:03 PM
Subject: [closure-compiler-discuss] Suppress warnings for optional arguments being at the end?
To: Closure Compiler Discuss <closure-comp...@googlegroups.com>


Hi,

Google's soyutils.js file for Closure Templates generates warnings
when compiled with the Closure Compiler because it has optional
arguments which are not the last argument to a function (a va_args
variable follows them). Is there an argument to @suppress which will
prevent these warnings from being generated?

Kai Huang

unread,
Oct 27, 2010, 6:34:59 PM10/27/10
to Closure Templates Discuss
Ah, that's pretty old code. It doesn't have the latest annotations
(specifically, the "..." for var args). We can fix that up at some
point.
Reply all
Reply to author
Forward
0 new messages