[webkit-changes] [WebKit/WebKit] 65c294: [WGSL] Implement lexing for 'array' keyword

Dan Glastonbury noreply at github.com
Sun Sep 18 17:40:01 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 65c294da01838f07141cc6a6188b87a4702c5966
      https://github.com/WebKit/WebKit/commit/65c294da01838f07141cc6a6188b87a4702c5966
  Author: Dan Glastonbury <djg at apple.com>
  Date:   2022-09-18 (Sun, 18 Sep 2022)

  Changed paths:
    M Source/WebGPU/WGSL/Lexer.cpp
    M Source/WebGPU/WGSL/Token.cpp
    M Source/WebGPU/WGSL/Token.h
    M Source/WebGPU/WGSLUnitTests/WGSLLexerTests.mm

  Log Message:
  -----------
  [WGSL] Implement lexing for 'array' keyword
https://bugs.webkit.org/show_bug.cgi?id=244791
rdar://99557428

Reviewed by Myles Maxfield.

* Source/WebGPU/WGSL/Lexer.cpp:
(WGSL::Lexer<T>::lex):
Lex "array" -> TokenType::KeywordArray
* Source/WebGPU/WGSL/Token.cpp:
(WGSL::toString):
TokenType::KeywordArray -> "array"
* Source/WebGPU/WGSL/Token.h:
Add token for 'array' keyword
* Source/WebGPU/WGSLUnitTests/WGSLLexerTests.mm:
- Update for "array" -> ArrayKeyword
- Add tests for lexing all recognized keywords

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




More information about the webkit-changes mailing list