darobin / webidl.js

DEPRECATED — Use https://github.com/darobin/webidl2.js instead
http://berjon.com/
26 stars 10 forks source link

Does it support statics? #12

Open marcoscaceres opened 12 years ago

marcoscaceres commented 12 years ago

The parser seems to support "static" declarations on interface members, but not quite correctly... Statics show up on a member as:

member[0] === "static"

Test case:

interface SomeFoo { static void test(); };

darobin commented 12 years ago

Nope, I don't think it supports statics. Those would have to be added to accepted prefixes.

marcoscaceres commented 12 years ago

You prolly saw the talk on public-script-coord of adding static attribute support also. Hopefully I can find time to work out how your code work and I can submit a patch.