Skip to content
Commit 0e3a7840 authored by Jim Blandy's avatar Jim Blandy Committed by Dzmitry Malyshau
Browse files

[wgsl-in]: Report unknown identifiers as Error::UnknownIdent.

Move the parsing of type construction expressions into a function of its own,
which can return `None` when the identifier at hand is not the name of a type.
This means that `parse_primary_expression` doesn't have to commit to
interpreting the expression as a type construction too early, allowing it to
report unknown identifiers as Error::UnknownIdent.
parent b191c982
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment