#include <lscript_error.h>
Public Member Functions | |
LLScriptGenerateErrorText () | |
~LLScriptGenerateErrorText () | |
void | init () |
void | writeWarning (FILE *fp, LLScriptFilePosition *pos, LSCRIPTWarnings warning) |
void | writeWarning (FILE *fp, S32 line, S32 col, LSCRIPTWarnings warning) |
void | writeError (FILE *fp, LLScriptFilePosition *pos, LSCRIPTErrors error) |
void | writeError (FILE *fp, S32 line, S32 col, LSCRIPTErrors error) |
BOOL | getErrors () |
BOOL | getWarnings () |
Public Attributes | |
S32 | mTotalErrors |
S32 | mTotalWarnings |
Definition at line 130 of file lscript_error.h.
LLScriptGenerateErrorText::LLScriptGenerateErrorText | ( | ) | [inline] |
LLScriptGenerateErrorText::~LLScriptGenerateErrorText | ( | ) | [inline] |
Definition at line 134 of file lscript_error.h.
BOOL LLScriptGenerateErrorText::getErrors | ( | ) | [inline] |
Definition at line 143 of file lscript_error.h.
References mTotalErrors.
Referenced by LLScriptState::gonext(), LLScriptGlobalFunctions::gonext(), LLScriptFunctionDec::gonext(), LLScriptEventHandler::gonext(), LLScriptStatement::gonext(), LLScriptExpression::gonext(), LLScriptScript::recurse(), LLScriptState::recurse(), LLScriptGlobalFunctions::recurse(), LLScriptFunctionDec::recurse(), LLScriptEventHandler::recurse(), LLScriptCompoundStatement::recurse(), LLScriptDeclaration::recurse(), LLScriptWhile::recurse(), LLScriptDoWhile::recurse(), LLScriptFor::recurse(), LLScriptIfElse::recurse(), LLScriptIf::recurse(), LLScriptExpressionStatement::recurse(), LLScriptReturn::recurse(), LLScriptLabel::recurse(), LLScriptJump::recurse(), LLScriptStateChange::recurse(), LLScriptNOOP::recurse(), LLScriptStatementSequence::recurse(), LLScriptConstantExpression::recurse(), LLScriptPrint::recurse(), LLScriptFunctionCall::recurse(), LLScriptPostDecrement::recurse(), LLScriptPostIncrement::recurse(), LLScriptListInitializer::recurse(), LLScriptQuaternionInitializer::recurse(), LLScriptVectorInitializer::recurse(), LLScriptTypeCast::recurse(), LLScriptPreDecrement::recurse(), LLScriptPreIncrement::recurse(), LLScriptBitNot::recurse(), LLScriptBooleanNot::recurse(), LLScriptUnaryMinus::recurse(), LLScriptParenthesis::recurse(), LLScriptShiftRight::recurse(), LLScriptShiftLeft::recurse(), LLScriptBooleanOr::recurse(), LLScriptBooleanAnd::recurse(), LLScriptBitXor::recurse(), LLScriptBitOr::recurse(), LLScriptBitAnd::recurse(), LLScriptMod::recurse(), LLScriptDivide::recurse(), LLScriptTimes::recurse(), LLScriptMinus::recurse(), LLScriptPlus::recurse(), LLScriptGreaterThan::recurse(), LLScriptLessThan::recurse(), LLScriptGreaterEquals::recurse(), LLScriptLessEquals::recurse(), LLScriptNotEquals::recurse(), LLScriptEquality::recurse(), LLScriptModAssignment::recurse(), LLScriptDivAssignment::recurse(), LLScriptMulAssignment::recurse(), LLScriptSubAssignment::recurse(), LLScriptAddAssignment::recurse(), LLScriptAssignment::recurse(), LLScriptLValue::recurse(), LLScriptListExpressionList::recurse(), LLScriptFuncExpressionList::recurse(), LLScriptForExpressionList::recurse(), LLScriptNotAtRotTarget::recurse(), LLScriptAtRotTarget::recurse(), LLScriptNotAtTarget::recurse(), LLScriptAtTarget::recurse(), LLScriptNoSensorEvent::recurse(), LLScriptRezEvent::recurse(), LLScriptEmailEvent::recurse(), LLScriptMoneyEvent::recurse(), LLScriptHTTPResponseEvent::recurse(), LLScriptRemoteEvent::recurse(), LLScriptLinkMessageEvent::recurse(), LLScriptControlEvent::recurse(), LLScriptObjectRezEvent::recurse(), LLScriptSensorEvent::recurse(), LLScriptChatEvent::recurse(), LLScriptRTPEvent::recurse(), LLScriptMovingEndEvent::recurse(), LLScriptMovingStartEvent::recurse(), LLScriptTimerEvent::recurse(), LLScriptDataserverEvent::recurse(), LLScriptAttachEvent::recurse(), LLScriptInventoryEvent::recurse(), LLScriptLandCollisionEndEvent::recurse(), LLScriptLandCollisionEvent::recurse(), LLScriptLandCollisionStartEvent::recurse(), LLScriptCollisionEndEvent::recurse(), LLScriptCollisionEvent::recurse(), LLScriptCollisionStartEvent::recurse(), LLScriptTouchEndEvent::recurse(), LLScriptTouchEvent::recurse(), LLScriptTouchStartEvent::recurse(), LLScriptStateExitEvent::recurse(), LLScriptStateEntryEvent::recurse(), LLScriptGlobalVariable::recurse(), LLScriptSAList::recurse(), LLScriptSAQuaternion::recurse(), LLScriptSAVector::recurse(), LLScriptSAConstant::recurse(), LLScriptSAIdentifier::recurse(), LLScriptSimpleAssignable::recurse(), LLScriptIdentifier::recurse(), LLScriptConstantString::recurse(), LLScriptConstantFloat::recurse(), LLScriptConstantInteger::recurse(), LLScriptConstant::recurse(), and LLScriptType::recurse().
BOOL LLScriptGenerateErrorText::getWarnings | ( | ) | [inline] |
Definition at line 136 of file lscript_error.h.
References mTotalErrors, and mTotalWarnings.
Referenced by LLScriptGenerateErrorText().
void LLScriptGenerateErrorText::writeError | ( | FILE * | fp, | |
S32 | line, | |||
S32 | col, | |||
LSCRIPTErrors | error | |||
) |
void LLScriptGenerateErrorText::writeError | ( | FILE * | fp, | |
LLScriptFilePosition * | pos, | |||
LSCRIPTErrors | error | |||
) |
Definition at line 90 of file lscript_error.cpp.
References gErrorText, LLScriptFilePosition::mColumnNumber, LLScriptFilePosition::mLineNumber, and mTotalErrors.
Referenced by LLScriptScriptCodeChunk::build(), LLScriptState::recurse(), LLScriptGlobalFunctions::recurse(), LLScriptFunctionDec::recurse(), LLScriptDeclaration::recurse(), LLScriptReturn::recurse(), LLScriptLabel::recurse(), LLScriptJump::recurse(), LLScriptStateChange::recurse(), LLScriptFunctionCall::recurse(), LLScriptPostDecrement::recurse(), LLScriptPostIncrement::recurse(), LLScriptQuaternionInitializer::recurse(), LLScriptVectorInitializer::recurse(), LLScriptTypeCast::recurse(), LLScriptPreDecrement::recurse(), LLScriptPreIncrement::recurse(), LLScriptBitNot::recurse(), LLScriptBooleanNot::recurse(), LLScriptUnaryMinus::recurse(), LLScriptShiftRight::recurse(), LLScriptShiftLeft::recurse(), LLScriptBooleanOr::recurse(), LLScriptBooleanAnd::recurse(), LLScriptBitXor::recurse(), LLScriptBitOr::recurse(), LLScriptBitAnd::recurse(), LLScriptMod::recurse(), LLScriptDivide::recurse(), LLScriptTimes::recurse(), LLScriptMinus::recurse(), LLScriptPlus::recurse(), LLScriptGreaterThan::recurse(), LLScriptLessThan::recurse(), LLScriptGreaterEquals::recurse(), LLScriptLessEquals::recurse(), LLScriptNotEquals::recurse(), LLScriptEquality::recurse(), LLScriptModAssignment::recurse(), LLScriptDivAssignment::recurse(), LLScriptMulAssignment::recurse(), LLScriptSubAssignment::recurse(), LLScriptAddAssignment::recurse(), LLScriptAssignment::recurse(), LLScriptLValue::recurse(), LLScriptFuncExpressionList::recurse(), LLScriptAtRotTarget::recurse(), LLScriptAtTarget::recurse(), LLScriptRezEvent::recurse(), LLScriptEmailEvent::recurse(), LLScriptMoneyEvent::recurse(), LLScriptHTTPResponseEvent::recurse(), LLScriptRemoteEvent::recurse(), LLScriptLinkMessageEvent::recurse(), LLScriptControlEvent::recurse(), LLScriptObjectRezEvent::recurse(), LLScriptSensorEvent::recurse(), LLScriptChatEvent::recurse(), LLScriptRTPEvent::recurse(), LLScriptDataserverEvent::recurse(), LLScriptAttachEvent::recurse(), LLScriptInventoryEvent::recurse(), LLScriptLandCollisionEndEvent::recurse(), LLScriptLandCollisionEvent::recurse(), LLScriptLandCollisionStartEvent::recurse(), LLScriptCollisionEndEvent::recurse(), LLScriptCollisionEvent::recurse(), LLScriptCollisionStartEvent::recurse(), LLScriptTouchEndEvent::recurse(), LLScriptTouchEvent::recurse(), LLScriptTouchStartEvent::recurse(), LLScriptGlobalVariable::recurse(), LLScriptSAQuaternion::recurse(), LLScriptSAVector::recurse(), LLScriptSAIdentifier::recurse(), and LLScriptIdentifier::recurse().
void LLScriptGenerateErrorText::writeWarning | ( | FILE * | fp, | |
S32 | line, | |||
S32 | col, | |||
LSCRIPTWarnings | warning | |||
) |
void LLScriptGenerateErrorText::writeWarning | ( | FILE * | fp, | |
LLScriptFilePosition * | pos, | |||
LSCRIPTWarnings | warning | |||
) |
Definition at line 78 of file lscript_error.cpp.
References gWarningText, LLScriptFilePosition::mColumnNumber, LLScriptFilePosition::mLineNumber, and mTotalWarnings.
Referenced by LLScriptStatementSequence::recurse().
Definition at line 146 of file lscript_error.h.
Referenced by getErrors(), init(), and writeError().
Definition at line 147 of file lscript_error.h.
Referenced by getWarnings(), init(), and writeWarning().