From fd1809590cdb90ac7b498ca3ff4086dfea5d065b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 12 Jan 2020 15:04:25 +0100 Subject: [PATCH] Token: Write function() in ast debug output --- lib/token.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/token.cpp b/lib/token.cpp index 89d9bf0c5..b0f438894 100644 --- a/lib/token.cpp +++ b/lib/token.cpp @@ -1507,6 +1507,11 @@ void Token::astStringVerboseRecursive(std::string& ret, const nonneg int indent1 ret += mStr; if (mImpl->mValueType) ret += " \'" + mImpl->mValueType->str() + '\''; + if (function()) { + std::ostringstream ostr; + ostr << "0x" << std::hex << function(); + ret += " f:" + ostr.str(); + } ret += '\n'; if (mImpl->mAstOperand1) {