Closed
Bug 458919
Opened 16 years ago
Closed 16 years ago
Expose .parameters on function declarations
Categories
(Developer Infrastructure :: Source Code Analysis, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: benjamin, Assigned: benjamin)
References
Details
Attachments
(1 file)
2.08 KB,
patch
|
taras.mozilla
:
review+
|
Details | Diff | Splinter Review |
Expose .parameters on function declarations, which allows me to map parameter names against their doxygen comments.
Attachment #342102 -
Flags: review?(tglek)
Comment 1•16 years ago
|
||
Comment on attachment 342102 [details] [diff] [review]
Expose .parameters on function declarations, rev. 1
>
>+ tree args;
>+
>+ if (TREE_CODE(v) == FUNCTION_DECL) {
>+ JSObject *arglist = JS_NewArrayObject (this->cx, 0, NULL);
>+ dehydra_defineProperty (this, obj, "parameters",
>+ OBJECT_TO_JSVAL (arglist));
>+
>+ tree args;
^--- looks like a typo(nuke one above). Surprised GCC let that compile
>+ for (args = DECL_ARGUMENTS(v); args; args = TREE_CHAIN (args))
>+ dehydra_addVar(this, args, arglist);
>+ }
>+
Attachment #342102 -
Flags: review?(tglek) → review+
Assignee | ||
Comment 2•16 years ago
|
||
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Firefox Build System
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•