Skip to content
Snippets Groups Projects
Commit be992af3 authored by Adam Knapp's avatar Adam Knapp
Browse files

Correcting setCodeSection


Signed-off-by: default avatarAdam Knapp <knappadam5@gmail.com>
parent 0de6c386
No related branches found
No related tags found
1 merge request!615Eliminating todos and fixmes
......@@ -56,12 +56,7 @@ public final class Break_Statement extends Statement {
@Override
/** {@inheritDoc} */
public void setCodeSection(final CodeSectionType codeSection) {
if (loop_stmt != null) {
loop_stmt.setCodeSection(codeSection);
}
if (altGuards != null) {
altGuards.setCodeSection(codeSection);
}
// Do nothing
}
@Override
......
......@@ -57,12 +57,7 @@ public final class Continue_Statement extends Statement {
@Override
/** {@inheritDoc} */
public void setCodeSection(final CodeSectionType codeSection) {
if (loop_stmt != null) {
loop_stmt.setCodeSection(codeSection);
}
if (altGuards != null) {
altGuards.setCodeSection(codeSection);
}
// Do nothing
}
@Override
......
......@@ -100,13 +100,7 @@ public final class Definition_Statement extends Statement {
@Override
/** {@inheritDoc} */
public void setCodeSection(final CodeSectionType codeSection) {
// TODO setCodeSection for Definition is not available
if (definition != null) {
; //definition.setCodeSection(codeSection);
}
if (myDefinition != null) {
; //myDefinition.setCodeSection(codeSection);
}
// Do nothing
}
@Override
......
......@@ -21,7 +21,7 @@ import org.eclipse.titan.designer.parsers.ttcn3parser.TTCN3ReparseUpdater;
* */
public final class Repeat_Statement extends Statement {
private static final String INCORRECTUSAGE = "Repeat statement cannot be used outside alt statements,"
+ " altsteps or resonse and exception handling part of call operations";
+ " altsteps or response and exception handling part of call operations";
private static final String STATEMENT_NAME = "repeat";
......@@ -54,9 +54,7 @@ public final class Repeat_Statement extends Statement {
@Override
/** {@inheritDoc} */
public void setCodeSection(final CodeSectionType codeSection) {
if (myAltGuards != null) {
myAltGuards.setCodeSection(codeSection);
}
// Do nothing
}
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment