Skip to content

Commit

Permalink
fix multiple item resolution for multiple namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurnikov committed Jul 17, 2024
1 parent 205ac4d commit 095c441
Showing 1 changed file with 4 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ fun processItemsInScope(
): Boolean {
for (namespace in namespaces) {
val stop = when (namespace) {

Namespace.CONST -> {
false
// val found = when (scope) {
Expand Down Expand Up @@ -160,19 +159,8 @@ fun processItemsInScope(
val module = scope.parent as MvModule
val specFunctions =
listOf(module.specFunctions(), module.builtinSpecFunctions()).flatten()
// val specFunctions = if (ctx.contextScopeInfo.isMslScope) {
// listOf(module.specFunctions(), module.builtinSpecFunctions()).flatten()
// } else {
// emptyList()
// }
val specInlineFunctions = module.moduleItemSpecs().flatMap { it.specInlineFunctions() }
// val specInlineFunctions = if (ctx.contextScopeInfo.isMslScope) {
// module.moduleItemSpecs().flatMap { it.specInlineFunctions() }
// } else {
// emptyList()
// }
processor.processAll(
// contextScopeInfo,
module.allNonTestFunctions(),
module.builtinFunctions(),
specFunctions,
Expand Down Expand Up @@ -269,12 +257,13 @@ fun processItemsInScope(
else -> false
}
}
if (!stop && scope is MvItemsOwner) {
if (scope.processUseSpeckElements(namespaces, processor)) return true
}
if (stop) return true
}

if (scope is MvItemsOwner) {
if (scope.processUseSpeckElements(namespaces, processor)) return true
}

return false
}

Expand Down

0 comments on commit 095c441

Please sign in to comment.