summaryrefslogtreecommitdiff
path: root/src/lib/corelib/language/filecontext.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/corelib/language/filecontext.h')
-rw-r--r--src/lib/corelib/language/filecontext.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/corelib/language/filecontext.h b/src/lib/corelib/language/filecontext.h
index 263b4774f..5f944794e 100644
--- a/src/lib/corelib/language/filecontext.h
+++ b/src/lib/corelib/language/filecontext.h
@@ -34,6 +34,8 @@
#include "filecontextbase.h"
#include "forward_decls.h"
+#include <QString>
+
namespace qbs {
namespace Internal {
class Item;
@@ -44,12 +46,16 @@ class FileContext : public FileContextBase
public:
static FileContextPtr create();
+ void setContent(const QString &content) { m_content = content; }
+ const QString &content() const { return m_content; }
+
Item *idScope() const { return m_idScope; }
void ensureIdScope(ItemPool *itemPool);
private:
FileContext();
+ QString m_content;
Item *m_idScope;
};