[webkit-changes] [WebKit/WebKit] c02eeb: [WGSL] Allow pointer operators on assignment targets

Tadeu Zagallo noreply at github.com
Mon Oct 23 15:33:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c02eeb8b9b22cd5effae9a654f36e61f24118beb
      https://github.com/WebKit/WebKit/commit/c02eeb8b9b22cd5effae9a654f36e61f24118beb
  Author: Tadeu Zagallo <tzagallo at apple.com>
  Date:   2023-10-23 (Mon, 23 Oct 2023)

  Changed paths:
    M Source/WebGPU/WGSL/Parser.cpp
    M Source/WebGPU/WGSL/tests/valid/pointers.wgsl

  Log Message:
  -----------
  [WGSL] Allow pointer operators on assignment targets
https://bugs.webkit.org/show_bug.cgi?id=263547
rdar://117369455

Reviewed by Mike Wyrzykowski.

The grammar allows for `*x` and `*x` to appear in the left-hand side of assignments,
but our parser did not support it yet.

* Source/WebGPU/WGSL/Parser.cpp:
(WGSL::Parser<Lexer>::parseStatement):
(WGSL::Parser<Lexer>::parseLHSExpression):
* Source/WebGPU/WGSL/tests/valid/pointers.wgsl:

Canonical link: https://commits.webkit.org/269677@main




More information about the webkit-changes mailing list