Skip to content

Commit

Permalink
chore: isRust
Browse files Browse the repository at this point in the history
  • Loading branch information
BFergerson committed Apr 6, 2024
1 parent 81d97c6 commit 199006a
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ object ArtifactTypeService : AbstractSourceMarkerService<IArtifactTypeService>()
return getJavaScriptLanguages().contains(element.language.id)
}

fun isRust(element: PsiElement): Boolean {
return element.language.id == "Rust"
}

fun getJvmLanguages(): List<String> {
return listOf("JAVA", "kotlin", "Groovy", "Scala")
}
Expand Down Expand Up @@ -183,3 +187,7 @@ fun PsiElement.isScala(): Boolean {
fun PsiElement.isJavaScript(): Boolean {
return ArtifactTypeService.isJavaScript(this)
}

fun PsiElement.isRust(): Boolean {
return ArtifactTypeService.isRust(this)
}

0 comments on commit 199006a

Please sign in to comment.