Bug 20361 - Grammar is wrong for serializers
Grammar is wrong for serializers
Status: NEW
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL
unspecified
PC All
: P2 normal
: ---
Assigned To: Cameron McCormack
public-webapps-bugzilla
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-12 16:37 UTC by Robin Berjon
Modified: 2012-12-21 14:24 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Berjon 2012-12-12 16:37:59 UTC
A serializer is supposed to be able to be:

   serializer identifier name();

But the syntax has that as serializer OperationRest. OperationRest does not include the identifier, so it needs to be added.
Comment 1 Robin Berjon 2012-12-12 16:39:09 UTC
(In reply to comment #0)
> A serializer is supposed to be able to be:
> 
>    serializer identifier name();
> 
> But the syntax has that as serializer OperationRest. OperationRest does not
> include the identifier, so it needs to be added.

Of course I would be more readable if I were awake. I meant

    serializer type identifier();

The type is not accounted for in the syntax.
Comment 2 Dominique Hazael-Massieux 2012-12-21 14:24:29 UTC
Maybe relatedly, the grammar prevents having a ";" (instead of mandating it) after an empty serializer declaration. 

interface Foo { serializer }; // valid according to the current grammar
interface Foo { serializer; }; // invalid according to the current grammar