Loading de.ugoe.cs.swe.TTCN3/src/de/ugoe/cs/swe/validation/LogValidator.xtend +8 −1 Original line number Diff line number Diff line Loading @@ -43,6 +43,9 @@ class LogValidator extends AbstractDeclarativeValidator { @Check def checkLogStatementFormat(FunctionStatementList functionStmList) { if (!activeProfile.checkLogStatementFormat) return; val parentTC = functionStmList.findDesiredParent(TestcaseDef) val parentFunc = functionStmList.findDesiredParent(FunctionDef) val parentAlt = functionStmList.findDesiredParent(AltstepDef) Loading @@ -61,6 +64,9 @@ class LogValidator extends AbstractDeclarativeValidator { @Check def checkLogStatementFormat(ModuleControlBody ctrl) { if (!activeProfile.checkLogStatementFormat) return; ctrl.eContents.checkStatementList(null) } Loading @@ -76,7 +82,6 @@ class LogValidator extends AbstractDeclarativeValidator { log = s.findLogStatement } if (log != null) { node = NodeModelUtils.getNode(log) if (other) { if (statementToCheck != null) { statementToCheck.checkLogStatementFormat(node, parent) Loading @@ -85,6 +90,8 @@ class LogValidator extends AbstractDeclarativeValidator { statementToCheck = null } node = NodeModelUtils.getNode(log) if (statementToCheck == null) statementToCheck = ""; Loading Loading
de.ugoe.cs.swe.TTCN3/src/de/ugoe/cs/swe/validation/LogValidator.xtend +8 −1 Original line number Diff line number Diff line Loading @@ -43,6 +43,9 @@ class LogValidator extends AbstractDeclarativeValidator { @Check def checkLogStatementFormat(FunctionStatementList functionStmList) { if (!activeProfile.checkLogStatementFormat) return; val parentTC = functionStmList.findDesiredParent(TestcaseDef) val parentFunc = functionStmList.findDesiredParent(FunctionDef) val parentAlt = functionStmList.findDesiredParent(AltstepDef) Loading @@ -61,6 +64,9 @@ class LogValidator extends AbstractDeclarativeValidator { @Check def checkLogStatementFormat(ModuleControlBody ctrl) { if (!activeProfile.checkLogStatementFormat) return; ctrl.eContents.checkStatementList(null) } Loading @@ -76,7 +82,6 @@ class LogValidator extends AbstractDeclarativeValidator { log = s.findLogStatement } if (log != null) { node = NodeModelUtils.getNode(log) if (other) { if (statementToCheck != null) { statementToCheck.checkLogStatementFormat(node, parent) Loading @@ -85,6 +90,8 @@ class LogValidator extends AbstractDeclarativeValidator { statementToCheck = null } node = NodeModelUtils.getNode(log) if (statementToCheck == null) statementToCheck = ""; Loading