Skip to content

Commit 481efe9

Browse files
committed
refactor: showLineNumber
1 parent 4357a62 commit 481efe9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/kotlin/spp/protocol/artifact/ArtifactType.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,9 @@ enum class ArtifactType {
2727
METHOD,
2828
STATEMENT,
2929
EXPRESSION,
30-
ENDPOINT
30+
ENDPOINT;
31+
32+
fun showLineNumber(): Boolean {
33+
return this == STATEMENT || this == EXPRESSION
34+
}
3135
}

0 commit comments

Comments
 (0)