OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
scriptcheck.hpp
Go to the documentation of this file.
1 #ifndef CSM_TOOLS_SCRIPTCHECK_H
2 #define CSM_TOOLS_SCRIPTCHECK_H
3 
6 
7 #include "../doc/stage.hpp"
8 
9 #include "../world/scriptcontext.hpp"
10 
11 namespace CSMDoc
12 {
13  class Document;
14 }
15 
16 namespace CSMTools
17 {
20  {
22  {
26  };
27 
31  std::string mId;
32  std::string mFile;
35 
37 
38  virtual void report (const std::string& message, const Compiler::TokenLoc& loc, Type type);
40 
41  virtual void report (const std::string& message, Type type);
43 
44  public:
45 
46  ScriptCheckStage (const CSMDoc::Document& document);
47 
48  virtual int setup();
50 
51  virtual void perform (int stage, CSMDoc::Messages& messages);
53  };
54 }
55 
56 #endif
Definition: scriptcheck.hpp:25
Type
Definition: errorhandler.hpp:23
void message(CodeContainer &code, Literals &literals, const std::string &message, int buttons)
Definition: generator.cpp:537
Definition: scriptcheck.hpp:23
Definition: scriptcontext.hpp:15
Location of a token in a source file.
Definition: tokenloc.hpp:10
Definition: messages.hpp:38
Definition: scriptcheck.hpp:24
CSMDoc::Message::Severity getSeverity(Type type)
Definition: scriptcheck.cpp:15
WarningMode mWarningMode
Definition: scriptcheck.hpp:34
VerifyStage: make sure that scripts compile.
Definition: scriptcheck.hpp:19
CSMWorld::ScriptContext mContext
Definition: scriptcheck.hpp:30
Error handling.
Definition: errorhandler.hpp:14
Collection of compiler extensions.
Definition: extensions.hpp:39
Definition: stage.hpp:15
const CSMDoc::Document & mDocument
Definition: scriptcheck.hpp:28
std::string mId
Definition: scriptcheck.hpp:31
virtual int setup()
Definition: scriptcheck.cpp:65
virtual void report(const std::string &message, const Compiler::TokenLoc &loc, Type type)
Report error to the user.
Definition: scriptcheck.cpp:26
Severity
Definition: messages.hpp:15
Definition: document.hpp:57
CSMDoc::Messages * mMessages
Definition: scriptcheck.hpp:33
WarningMode
Definition: scriptcheck.hpp:21
virtual void perform(int stage, CSMDoc::Messages &messages)
Messages resulting from this tage will be appended to messages.
Definition: scriptcheck.cpp:84
Compiler::Extensions mExtensions
Definition: scriptcheck.hpp:29
ScriptCheckStage(const CSMDoc::Document &document)
Definition: scriptcheck.cpp:55
std::string mFile
Definition: scriptcheck.hpp:32