We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently webidl2 reports "Unterminated operation" when encountering union types in typedefs.
For example, see this from the webgl 1.0 spec idl:
typedef (ImageData or HTMLImageElement or HTMLCanvasElement or HTMLVideoElement) TexImageSource;
and these from the webgl 2.0 spec idl:
typedef (Uint32Array or sequence<GLuint>) UniformUIVSource; ... typedef (Float32Array or sequence<GLfloat>) UniformMatrixFVSource; ... typedef (Int32Array or sequence<GLint>) VertexAttribIVSource; // etc
But according to the WebIDL grammar this should be valid, as a Typedef contains a Type:
Typedef
Type
[24] Typedef → "typedef" ExtendedAttributeList Type identifier ";"
And a Type can be a SingleType or a UnionType:
SingleType
UnionType
[57] Type → SingleType | UnionType TypeSuffix ... [59] UnionType → "(" UnionMemberType "or" UnionMemberType UnionMemberTypes ")"
The text was updated successfully, but these errors were encountered:
61c8e65
💜
Sorry, something went wrong.
Confirm support for union in typedef
7bf2df2
close #38
No branches or pull requests
Currently webidl2 reports "Unterminated operation" when encountering union types in typedefs.
For example, see this from the webgl 1.0 spec idl:
and these from the webgl 2.0 spec idl:
But according to the WebIDL grammar this should be valid, as a
Typedef
contains aType
:And a
Type
can be aSingleType
or aUnionType
:The text was updated successfully, but these errors were encountered: