[webkit-changes] [WebKit/WebKit] e6b88c: [WGSL] Replace Expected<T, Error> with Result<T>

Dan Glastonbury noreply at github.com
Mon Feb 13 19:51:23 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e6b88c39b860ecb6310662e559ac7c853beb3bdd
      https://github.com/WebKit/WebKit/commit/e6b88c39b860ecb6310662e559ac7c853beb3bdd
  Author: Dan Glastonbury <djg at apple.com>
  Date:   2023-02-13 (Mon, 13 Feb 2023)

  Changed paths:
    M Source/WebGPU/WGSL/AST/ASTVisitor.cpp
    M Source/WebGPU/WGSL/AST/ASTVisitor.h
    M Source/WebGPU/WGSL/CompilationMessage.h
    M Source/WebGPU/WGSL/Parser.cpp
    M Source/WebGPU/WGSL/ParserPrivate.h

  Log Message:
  -----------
  [WGSL] Replace Expected<T, Error> with Result<T>
https://bugs.webkit.org/show_bug.cgi?id=252201
rdar://problem/105420454

Reviewed by Matt Woodrow.

To reduce the verbosity of templated types, add a using alias Result<T> for
Expected<T, Error>.

Also, update parser implementation signatures to match declarations.

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




More information about the webkit-changes mailing list