From 14dafdb39f1ce9eb205ecc978b7255c4cfc72446 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 4 Nov 2016 14:57:53 +0200 Subject: Use include-aware location in testscript --- build2/token | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'build2/token') diff --git a/build2/token b/build2/token index 7432d52..b3ebf5b 100644 --- a/build2/token +++ b/build2/token @@ -116,6 +116,11 @@ namespace build2 const path* file; lexer_mode_base mode; char pair_separator; + + using location_type = build2::location; + + location_type + location () const {return location_type (file, token.line, token.column);} }; using replay_tokens = vector; -- cgit v1.1