Bug 252278

Summary: [WGSL] Use a SortedArrayMap to match keywords and reserved words
Product: WebKit Reporter: Dan Glastonbury <djg>
Component: WebGPUAssignee: Dan Glastonbury <djg>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   

Description Dan Glastonbury 2023-02-14 17:50:36 PST
In lieu of a tool to generate a trie for detecting keywords and reserved words,
replace the long sequence of if/return with a SortedArrayMap of keyword to
TokenType.
Comment 1 Radar WebKit Bug Importer 2023-02-14 17:51:13 PST
<rdar://problem/105476092>
Comment 2 Dan Glastonbury 2023-02-14 20:56:33 PST
Pull request: https://github.com/WebKit/WebKit/pull/10121
Comment 3 EWS 2023-02-15 17:40:05 PST
Committed 260336@main (9ee0c4ea8853): <https://commits.webkit.org/260336@main>

Reviewed commits have been landed. Closing PR #10121 and removing active labels.