summaryrefslogtreecommitdiffstats
path: root/third_party/rust/naga/src/front/glsl/token.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/naga/src/front/glsl/token.rs')
-rw-r--r--third_party/rust/naga/src/front/glsl/token.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/third_party/rust/naga/src/front/glsl/token.rs b/third_party/rust/naga/src/front/glsl/token.rs
new file mode 100644
index 0000000000..7b849d361f
--- /dev/null
+++ b/third_party/rust/naga/src/front/glsl/token.rs
@@ -0,0 +1,8 @@
+use std::ops::Range;
+
+#[derive(Debug, Clone)]
+#[cfg_attr(test, derive(PartialEq))]
+pub struct TokenMetadata {
+ pub line: usize,
+ pub chars: Range<usize>,
+}