Skip to content
Snippets Groups Projects
Commit ea644532 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Protect the rewriter.

parent 5ae6d573
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
#include "parser/javascriptast_p.h"
using namespace JavaScript;
using namespace DuiEditor::Internal;
void Rewriter::replace(const AST::SourceLocation &loc, const QString &text)
{ replace(loc.offset, loc.length, text); }
......
......@@ -7,6 +7,9 @@
#include "textwriter.h"
#include "parser/javascriptastvisitor_p.h"
namespace DuiEditor {
namespace Internal {
////////////////////////////////////////////////////////////////////////////////
// Replacement
////////////////////////////////////////////////////////////////////////////////
......@@ -97,4 +100,7 @@ private:
QList<Replacement> _replacementList;
};
} // end of namespace Internal
} // end of namespace DuiEditor
#endif // REWRITER_H
#include "textwriter.h"
using namespace DuiEditor::Internal;
TextWriter::TextWriter()
:string(0), cursor(0)
{
......
......@@ -5,6 +5,8 @@
#include <QList>
#include <QTextCursor>
namespace DuiEditor {
namespace Internal {
class TextWriter
{
......@@ -46,4 +48,7 @@ public:
};
} // end of namespace Internal
} // end of namespace DuiEditor
#endif // TEXTWRITER_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment