The QScriptSyntaxCheckResult class provides the result of a script syntax check. 更多...
The QScriptSyntaxCheckResult class provides the result of a script syntax check.
QScriptSyntaxCheckResult is returned by QScriptEngine.checkSyntax () to provide information about the syntactical (in)correctness of a 脚本。
This enum specifies the state of a syntax check.
| 常量 | 值 | 描述 |
|---|---|---|
| QScriptSyntaxCheckResult.Error | 0 | The program contains a syntax error. |
| QScriptSyntaxCheckResult.Intermediate | 1 | The program is incomplete. |
| QScriptSyntaxCheckResult.Valid | 2 | The program is a syntactically correct Qt Script program. |
构造新 QScriptSyntaxCheckResult from the other 结果。
Returns the error column number of this QScriptSyntaxCheckResult , or -1 if there is no error.
另请参阅 state () 和 errorLineNumber ().
Returns the error line number of this QScriptSyntaxCheckResult , or -1 if there is no error.
另请参阅 state () 和 errorMessage ().
Returns the error message of this QScriptSyntaxCheckResult ,或 empty string if there is no error.
另请参阅 state () 和 errorLineNumber ().
Returns the state of this QScriptSyntaxCheckResult .