summaryrefslogtreecommitdiff
path: root/src/location.cc
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-09-28 22:53:30 +0200
committerJoel Klinghed <the_jk@spawned.biz>2025-09-29 09:39:17 +0200
commit1e9e51dae1c01bab7562911b958c47528b8011c8 (patch)
tree73e0c97545d1cf833a4205c8ced41c822b4bb348 /src/location.cc
parent0ca22c7d6d650c80906bd1217fccf32066cc2502 (diff)
java: Add tokens
Only parses Java 8 tokens for now.
Diffstat (limited to 'src/location.cc')
-rw-r--r--src/location.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/location.cc b/src/location.cc
new file mode 100644
index 0000000..3fa1075
--- /dev/null
+++ b/src/location.cc
@@ -0,0 +1,12 @@
+#include "location.hh"
+
+#include <ostream>
+
+namespace src {
+
+std::ostream& operator<<(std::ostream& out, Location const& loc) {
+ out << loc.line << ':' << loc.column;
+ return out;
+}
+
+} // namespace src