Changeset 245727 in webkit
- Timestamp:
- May 23, 2019, 4:41:56 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
Modules/webgpu/WHLSL/WHLSLASTDumper.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r245724 r245727 1 2019-05-23 Saam barati <sbarati@apple.com> 2 3 [WHLSL] Make the AST dumper disambiguate expressions using parenthesis to represent AST construction 4 https://bugs.webkit.org/show_bug.cgi?id=198199 5 6 Reviewed by Myles C. Maxfield. 7 8 We would dump "*foo.bar" for "(*foo).bar", which is super confusing. 9 We now dump "(*foo).bar". 10 11 * Modules/webgpu/WHLSL/WHLSLASTDumper.cpp: 12 (WebCore::WHLSL::ASTDumper::visit): 13 1 14 2019-05-23 Saam barati <sbarati@apple.com> 2 15 -
trunk/Source/WebCore/Modules/webgpu/WHLSL/WHLSLASTDumper.cpp
r245724 r245727 420 420 void ASTDumper::visit(AST::Expression& expression) 421 421 { 422 bool skipParens = is<AST::BooleanLiteral>(expression) 423 || is<AST::FloatLiteral>(expression) 424 || is<AST::IntegerLiteral>(expression) 425 || is<AST::NullLiteral>(expression) 426 || is<AST::UnsignedIntegerLiteral>(expression) 427 || is<AST::EnumerationMemberLiteral>(expression) 428 || is<AST::CommaExpression>(expression) 429 || is<AST::VariableReference>(expression); 430 431 if (!skipParens) 432 m_out.print("("); 422 433 Base::visit(expression); 434 if (!skipParens) 435 m_out.print(")"); 423 436 } 424 437
Note:
See TracChangeset
for help on using the changeset viewer.