From f7917760f284a799599a9b7bdf5328309f34b554 Mon Sep 17 00:00:00 2001
From: Adam Radziszewski <adam.radziszewski@pwr.wroc.pl>
Date: Fri, 15 Jul 2011 13:57:53 +0200
Subject: [PATCH] lexeme replacing func in Token

---
 libcorpus2/token.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libcorpus2/token.h b/libcorpus2/token.h
index ab09922..5cd4f61 100644
--- a/libcorpus2/token.h
+++ b/libcorpus2/token.h
@@ -106,6 +106,11 @@ public:
 		lexemes_.push_back(lex);
 	}
 
+	/// Replaces all the lexemes with the given vector
+	void replace_lexemes(const std::vector<Lexeme>& new_lexemes) {
+		lexemes_ = new_lexemes;
+	}
+
 	/**
 	 * Get the 'best' lexeme available, with best meaning disambiguated if
 	 * possible, and when there is more than one candidate, some form of
-- 
GitLab