Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: f46788aa00cb6852bf31148375ffc762cdb48642 https://github.com/WebKit/WebKit/commit/f46788aa00cb6852bf31148375ffc762cdb48642 Author: Tadeu Zagallo <tzaga...@apple.com> Date: 2023-03-31 (Fri, 31 Mar 2023)
Changed paths: M Source/WebGPU/WGSL/Overload.h M Source/WebGPU/WGSL/TypeCheck.cpp M Source/WebGPU/WGSL/TypeDeclarations.rb M Source/WebGPU/WGSL/generator/main.rb M Source/WebGPU/WGSL/tests/invalid/overload.wgsl M Source/WebGPU/WGSL/tests/valid/overload.wgsl Log Message: ----------- [WGSL] Add typing for unary expressions https://bugs.webkit.org/show_bug.cgi?id=254748 rdar://107424606 Reviewed by Myles C. Maxfield. Make UnaryExpression use the existing overload resolution infrastructure. For now, I only added declarations for unary minus, but I'll add more operators as we go. * Source/WebGPU/WGSL/Overload.h: * Source/WebGPU/WGSL/TypeCheck.cpp: (WGSL::TypeChecker::visit): * Source/WebGPU/WGSL/TypeDeclarations.rb: * Source/WebGPU/WGSL/generator/main.rb: * Source/WebGPU/WGSL/tests/invalid/overload.wgsl: * Source/WebGPU/WGSL/tests/valid/overload.wgsl: Canonical link: https://commits.webkit.org/262398@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes