Loading de.ugoe.cs.swe.TTCN3/src/de/ugoe/cs/swe/validation/CodeStyleValidator.xtend +10 −3 Original line number Diff line number Diff line Loading @@ -109,11 +109,18 @@ class CodeStyleValidator extends AbstractDeclarativeValidator { return; var message = "" var methodName = "" val INode node = NodeModelUtils.getNode(ref) switch ref { GotoStatement: message = "A \"goto\" statement is used!" LabelStatement: message = "A \"label\" statement is used!" GotoStatement: { message = "A \"goto\" statement is used!" methodName = "checkNoGotoStatements" } LabelStatement: { message = "A \"label\" statement is used!" methodName = "checkNoLabelStatements" } } statistics.incrementCountStyle Loading @@ -124,7 +131,7 @@ class CodeStyleValidator extends AbstractDeclarativeValidator { MessageClass.STYLE.toString, node.startLine.toString, node.endLine.toString, "6.1, " + "checkNoGotoStatements" "6.1, " + methodName ); } Loading Loading
de.ugoe.cs.swe.TTCN3/src/de/ugoe/cs/swe/validation/CodeStyleValidator.xtend +10 −3 Original line number Diff line number Diff line Loading @@ -109,11 +109,18 @@ class CodeStyleValidator extends AbstractDeclarativeValidator { return; var message = "" var methodName = "" val INode node = NodeModelUtils.getNode(ref) switch ref { GotoStatement: message = "A \"goto\" statement is used!" LabelStatement: message = "A \"label\" statement is used!" GotoStatement: { message = "A \"goto\" statement is used!" methodName = "checkNoGotoStatements" } LabelStatement: { message = "A \"label\" statement is used!" methodName = "checkNoLabelStatements" } } statistics.incrementCountStyle Loading @@ -124,7 +131,7 @@ class CodeStyleValidator extends AbstractDeclarativeValidator { MessageClass.STYLE.toString, node.startLine.toString, node.endLine.toString, "6.1, " + "checkNoGotoStatements" "6.1, " + methodName ); } Loading