Bug 246660 - [WGSL] AST Visitor helper
Summary: [WGSL] AST Visitor helper
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGPU (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Dan Glastonbury
URL:
Keywords: InRadar
Depends on:
Blocks: 246558
  Show dependency treegraph
 
Reported: 2022-10-17 16:40 PDT by Dan Glastonbury
Modified: 2022-10-19 02:19 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Glastonbury 2022-10-17 16:40:30 PDT
Many analysis passes in the compiler need to work with the subtrees of the
AST. AST::Visitor provides the boilerplate for performing a preorder traversal
of an AST; analyzers derived from AST::Visitor can override visit methods for
just the kinds of nodes for its task.
Comment 1 Radar WebKit Bug Importer 2022-10-17 16:44:16 PDT
<rdar://problem/101268329>
Comment 2 Dan Glastonbury 2022-10-17 16:45:52 PDT
Pull request: https://github.com/WebKit/WebKit/pull/5468
Comment 3 EWS 2022-10-19 02:19:53 PDT
Committed 255725@main (bbdc3617fa55): <https://commits.webkit.org/255725@main>

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