Title: [295678] trunk/Source/WebGPU/WGSL/SourceSpan.h
- Revision
- 295678
- Author
- [email protected]
- Date
- 2022-06-20 17:29:18 -0700 (Mon, 20 Jun 2022)
Log Message
[WebGPU] Support equality comparison between SourceSpans
https://bugs.webkit.org/show_bug.cgi?id=241757
Patch by Kiet Ho <[email protected]> on 2022-06-20
Reviewed by Myles C. Maxfield.
* Source/WebGPU/WGSL/SourceSpan.h:
(WGSL::SourceSpan::operator==):
Canonical link: https://commits.webkit.org/251683@main
Modified Paths
Diff
Modified: trunk/Source/WebGPU/WGSL/SourceSpan.h (295677 => 295678)
--- trunk/Source/WebGPU/WGSL/SourceSpan.h 2022-06-21 00:02:18 UTC (rev 295677)
+++ trunk/Source/WebGPU/WGSL/SourceSpan.h 2022-06-21 00:29:18 UTC (rev 295678)
@@ -56,6 +56,14 @@
, m_length(end.m_offset - start.m_offset)
{
}
+
+ bool operator==(const SourceSpan& other)
+ {
+ return (m_line == other.m_line
+ && m_lineOffset == other.m_lineOffset
+ && m_offset == other.m_offset
+ && m_length == other.m_length);
+ }
};
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes