Re: [heycam/webidl] Allow extended attributes to apply to types (#286)

domenic commented on this pull request.



> +        <a href="#extended-attributes-applicable-to-types">applicable to types</a>.
+    1.  If |type| appears as part of a <emu-nt><a href="#prod-Type">Type</a></emu-nt> production
+        within an <emu-nt><a href="#prod-DictionaryMember">DictionaryMember</a></emu-nt> production,
+        add to |extended attributes| all of the [=extended attributes=] present in the production's
+        <emu-nt><a href="#prod-ExtendedAttributeList">ExtendedAttributeList</a></emu-nt> that are
+        <a href="#extended-attributes-applicable-to-types">applicable to types</a>.
+    1.  If |type| is a [=typedef=], add the [=extended attributes associated with=] the type being
+        given a new name to |extended attributes|.
+    1. Return |extended attributes|.
+</div>
+
+For any [=type=], the [=extended attributes associated with=] it must only contain
+[=extended attributes=] that are
+<a href="#extended-attributes-applicable-to-types">applicable to types</a>.
+
+The [=type name=] of a type associated with [=extended attributes=] is the concatenation of the

It is specified, since the type is `Foo?` and the new type is `[Clamped] Foo?`. I'll add an example though.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/286#discussion_r108635434

Received on Wednesday, 29 March 2017 09:52:43 UTC