data: compile error fix

fixed compile errors for TokenLocation.
This commit is contained in:
malte_langkabel
2014-07-01 14:25:28 +02:00
parent b72584559c
commit 3dabe009e0
4 changed files with 9 additions and 1 deletions
+6 -1
View File
@@ -3,7 +3,12 @@
#include "data/location/TokenLocationLine.h"
TokenLocation::TokenLocation(Id tokenId, TokenLocationLine* line, unsigned int columnNumber, bool isStart)
: TokenLocation(s_locationId++, tokenId, line, columnNumber, isStart)
: m_id(s_locationId++)
, m_tokenId(tokenId)
, m_line(line)
, m_columnNumber(columnNumber)
, m_other(nullptr)
, m_isStart(isStart)
{
}
@@ -1,6 +1,7 @@
#ifndef TOKEN_LOCATION_COLLECTION_H
#define TOKEN_LOCATION_COLLECTION_H
#include <functional>
#include <map>
#include <memory>
#include <ostream>
@@ -1,6 +1,7 @@
#ifndef TOKEN_LOCATION_FILE_H
#define TOKEN_LOCATION_FILE_H
#include <functional>
#include <map>
#include <memory>
#include <ostream>
@@ -1,6 +1,7 @@
#ifndef TOKEN_LOCATION_LINE_H
#define TOKEN_LOCATION_LINE_H
#include <functional>
#include <map>
#include <memory>
#include <ostream>