Skip to content

Commit

Permalink
refact: cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
iromeo committed Oct 18, 2024
1 parent 66b2399 commit 45944f0
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -425,22 +425,30 @@ class SnakemakeAPIProjectService(val project: Project): Disposable {
}
if (!params.isPlaceholderInjectionAllowed) {
val context = ctxAndName.contextType
val keywords = contextType2NotValidForInjectionSubsectionKeywords.getOrPut(context) { mutableSetOf<String>() }
val keywords = contextType2NotValidForInjectionSubsectionKeywords.getOrPut(context) {
mutableSetOf<String>()
}
keywords.add(ctxAndName.directiveKeyword)
}
if (params.isPlaceholderExpandedToWildcard) {
val context = ctxAndName.contextType
val keywords = contextType2WildcardsExpandingSubsectionKeywords.getOrPut(context) { mutableSetOf<String>() }
val keywords = contextType2WildcardsExpandingSubsectionKeywords.getOrPut(context) {
mutableSetOf<String>()
}
keywords.add(ctxAndName.directiveKeyword)
}
if (params.isAccessibleInRuleObj) {
val context = ctxAndName.contextType
val keywords = contextType2AccessibleInRuleObjectSubsectionKeywords.getOrPut(context) { mutableSetOf<String>() }
val keywords = contextType2AccessibleInRuleObjectSubsectionKeywords.getOrPut(context) {
mutableSetOf<String>()
}
keywords.add(ctxAndName.directiveKeyword)
}
if (params.isAccessibleAsPlaceholder) {
val context = ctxAndName.contextType
val keywords = contextType2AccessibleAccessibleAsPlaceholderSubsectionKeywords.getOrPut(context) { mutableSetOf<String>() }
val keywords = contextType2AccessibleAccessibleAsPlaceholderSubsectionKeywords.getOrPut(context) {
mutableSetOf<String>()
}
keywords.add(ctxAndName.directiveKeyword)
}

Expand Down

0 comments on commit 45944f0

Please sign in to comment.