File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
common/src/main/kotlin/spp/jetbrains/artifact/model Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1616 */
1717package spp.jetbrains.artifact.model
1818
19+ /* *
20+ * A control structure artifact refers to things that control the flow of a program:
21+ * - conditionals (i.e. if/elif/else)
22+ * - for-loops, while-loops, do-while loops
23+ * - try-catch-finally
24+ * - switch statements
25+ */
1926interface ControlStructureArtifact {
20- val condition: ArtifactElement ?
2127 val childArtifacts: List <ArtifactElement >
2228}
Original file line number Diff line number Diff line change @@ -18,9 +18,12 @@ package spp.jetbrains.artifact.model
1818
1919import com.intellij.psi.PsiElement
2020
21+ /* *
22+ * Represents if/elif/else control structures.
23+ */
2124abstract class IfArtifact (psiElement : PsiElement ) : ArtifactElement(psiElement), ControlStructureArtifact {
2225
23- abstract override val condition: ArtifactElement ?
26+ abstract val condition: ArtifactElement ?
2427 abstract val thenBranch: ArtifactElement ?
2528 abstract val elseBranch: ArtifactElement ?
2629
You can’t perform that action at this time.
0 commit comments