Closed GoogleCodeExporter closed 8 years ago
try this...
/**
Represents the first tab
@name TAB_I
*/
const TAB_I = 0;
Original comment by micmath
on 22 Feb 2008 at 7:54
That worked, but why wasn't it picking it up in the first place? The
documentation
example required only the description.
Original comment by lord2800@gmail.com
on 23 Feb 2008 at 8:18
@name essentially tells the parser to ignore the code and use the given name, so
there's no doubt that it will find TAB_I with that method. Why wasn't it working
before? Because "const" isn't recognized by the parser (var would have worked).
You
can use this workaround too:
const
/**
Represents the first tab.
*/
TAB_I = 0;
or I could add support for "const".
Original comment by micmath
on 23 Feb 2008 at 9:28
Makes sense. Support for const would be nice, since I tend to use it all over
the
place in my code.
Wonderful tool, by the way. Sorry about the unnecessary report, I just didn't
see
anywhere that mentioned why this wouldn't work.
Original comment by lord2800@gmail.com
on 23 Feb 2008 at 11:56
I've added support for "const" in the latest revision of Version 2. You can now
write:
/**
Represents the first tab
@constant
@default 0
*/
const TAB_I = 0;
Original comment by micmath
on 24 Feb 2008 at 9:12
Original issue reported on code.google.com by
lord2800@gmail.com
on 22 Feb 2008 at 3:50