mirror of
https://github.com/ilyakooo0/intellij-haskell.git
synced 2024-08-17 10:40:44 +03:00
Take qualified declaration into account. Fix #499
This commit is contained in:
parent
fb7ee53877
commit
44d987d703
@ -171,7 +171,7 @@ private[component] object BrowseModuleComponent {
|
||||
private def createProjectModuleIdentifier(project: Project, declarationLine: String, moduleName: String): Option[ModuleIdentifier] = {
|
||||
declarationLine match {
|
||||
case Module$SelPattern(mn, id, fieldType) => Some(ModuleIdentifier(id, mn, s"$id :: $fieldType", StringUtil.isWithinParens(id)))
|
||||
case _ => DeclarationUtil.getDeclarationInfo(declarationLine, containsQualifiedIds = false).
|
||||
case _ => DeclarationUtil.getDeclarationInfo(declarationLine, containsQualifiedIds = true).
|
||||
map(declarationInfo => ModuleIdentifier(declarationInfo.id, moduleName, declarationInfo.declarationLine, declarationInfo.operator))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user