[webkit-changes] [WebKit/WebKit] 6bc04a: [WGSL] Keep expression enums in sync with printed ...
Dan Glastonbury
noreply at github.com
Tue Feb 14 18:31:40 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 6bc04af6ac1728e5303e75c8434a7179b606f0a3
https://github.com/WebKit/WebKit/commit/6bc04af6ac1728e5303e75c8434a7179b606f0a3
Author: Dan Glastonbury <djg at apple.com>
Date: 2023-02-14 (Tue, 14 Feb 2023)
Changed paths:
M Source/WebGPU/WGSL/AST/ASTBinaryExpression.cpp
M Source/WebGPU/WGSL/AST/ASTBinaryExpression.h
M Source/WebGPU/WGSL/AST/ASTUnaryExpression.cpp
M Source/WebGPU/WGSL/AST/ASTUnaryExpression.h
Log Message:
-----------
[WGSL] Keep expression enums in sync with printed representation
https://bugs.webkit.org/show_bug.cgi?id=251484
rdar://problem/104902431
Reviewed by Myles C. Maxfield.
Use preprocess fruit lists to keep the enum definition and string representation
of binary and unary expression operations in sync.
* Source/WebGPU/WGSL/AST/ASTBinaryExpression.cpp:
(WGSL::AST::toString):
(WGSL::AST::printInternal): Deleted.
* Source/WebGPU/WGSL/AST/ASTBinaryExpression.h:
(WGSL::AST::toASCIILiteral):
* Source/WebGPU/WGSL/AST/ASTUnaryExpression.cpp:
(WGSL::AST::printInternal):
* Source/WebGPU/WGSL/AST/ASTUnaryExpression.h:
(WGSL::AST::toASCIILiteral):
Canonical link: https://commits.webkit.org/260290@main
More information about the webkit-changes
mailing list