Closed Bug 458919 Opened 16 years ago Closed 16 years ago

Expose .parameters on function declarations

Categories

(Developer Infrastructure :: Source Code Analysis, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: benjamin, Assigned: benjamin)

References

Details

Attachments

(1 file)

Expose .parameters on function declarations, which allows me to map parameter names against their doxygen comments.
Attachment #342102 - Flags: review?(tglek)
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+
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Product: Core → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: