Skip to content

Commit

Permalink
suppress name shadowing warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tomblachut committed May 25, 2022
1 parent c663b58 commit e5709bb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class SvelteKitModuleReferenceContributor : JSResolvableModuleReferenceContribut

override fun isAcceptableText(unquotedRefText: String): Boolean {
val requiredModuleName = FileUtilRt.toSystemIndependentName(unquotedRefText)
return StringUtil.startsWith(requiredModuleName, "\$app/");
return StringUtil.startsWith(requiredModuleName, "\$app/")
}

override fun getDefaultWeight(): Int {
Expand Down Expand Up @@ -65,6 +65,7 @@ class SvelteKitModuleReferenceContributor : JSResolvableModuleReferenceContribut

// based on TypeScriptUtil.createFilterByNodeModuleScope
private fun createFilterByNodeModuleScope(scope: GlobalSearchScope, context: PsiElement): GlobalSearchScope {
@Suppress("NAME_SHADOWING")
var context = context
if (context is PsiFile) context = context.originalFile
val contextFile = PsiUtilCore.getVirtualFile(context)
Expand Down

0 comments on commit e5709bb

Please sign in to comment.