Skip to content

Commit

Permalink
Move utils.kt to common package
Browse files Browse the repository at this point in the history
  • Loading branch information
mattco98 committed Jan 21, 2024
1 parent 212531f commit 791701f
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package me.mattco.serenityos.idl
package me.mattco.serenityos.common

import com.intellij.psi.PsiElement
import com.intellij.psi.PsiWhiteSpace
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/me/mattco/serenityos/idl/IDLResolver.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package me.mattco.serenityos.idl

import com.intellij.psi.PsiElement
import com.intellij.psi.util.descendantsOfType
import me.mattco.serenityos.common.findChildrenOfType
import me.mattco.serenityos.idl.psi.IDLDeclaration
import me.mattco.serenityos.idl.psi.api.IDLImportStatement
import me.mattco.serenityos.idl.psi.mixins.resolveFile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.intellij.psi.PsiComment
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiWhiteSpace
import me.mattco.serenityos.common.DSLAnnotator
import me.mattco.serenityos.idl.*
import me.mattco.serenityos.common.prevSiblings
import me.mattco.serenityos.idl.psi.IDLDeclaration
import me.mattco.serenityos.idl.psi.api.IDLCallbackInterface
import me.mattco.serenityos.idl.psi.api.IDLExtendedAttributeList
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/me/mattco/serenityos/idl/folding.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import com.intellij.psi.PsiElement
import com.intellij.psi.util.PsiTreeUtil
import com.intellij.refactoring.suggested.endOffset
import com.intellij.refactoring.suggested.startOffset
import me.mattco.serenityos.common.nextSiblingOfType
import me.mattco.serenityos.common.prevSiblingOfType
import me.mattco.serenityos.idl.psi.IDLPsiElement
import me.mattco.serenityos.idl.psi.api.*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import com.intellij.openapi.project.DumbService
import com.intellij.openapi.project.Project
import com.intellij.openapi.vfs.VirtualFile
import com.intellij.openapi.vfs.toNioPathOrNull
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiManager
import com.intellij.psi.search.FilenameIndex
import com.intellij.psi.search.GlobalSearchScopes
Expand All @@ -15,7 +14,7 @@ import com.jetbrains.cidr.lang.psi.OCCppNamespace
import com.jetbrains.cidr.lang.psi.OCElement
import com.jetbrains.cidr.lang.psi.OCFile
import com.jetbrains.cidr.lang.psi.OCStructLike
import me.mattco.serenityos.idl.descendentsOfType
import me.mattco.serenityos.common.descendentsOfType
import me.mattco.serenityos.idl.IDLFile
import me.mattco.serenityos.idl.IDLResolver
import me.mattco.serenityos.idl.psi.IDLDeclaration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package me.mattco.serenityos.idl.psi
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFileFactory
import me.mattco.serenityos.idl.descendantOfType
import me.mattco.serenityos.common.descendantOfType
import me.mattco.serenityos.idl.IDLFile
import me.mattco.serenityos.idl.IDLFileType
import me.mattco.serenityos.idl.psi.api.IDLNamespace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ package me.mattco.serenityos.ipc
import com.intellij.openapi.project.DumbAware
import com.intellij.psi.PsiElement
import me.mattco.serenityos.common.DSLAnnotator
import me.mattco.serenityos.idl.findChildrenOfType
import me.mattco.serenityos.common.findChildrenOfType
import me.mattco.serenityos.ipc.psi.api.IPCAttributeList
import me.mattco.serenityos.ipc.psi.api.IPCEndpoint
import me.mattco.serenityos.ipc.psi.api.IPCEndpointFunction
import me.mattco.serenityos.ipc.psi.api.IPCInclude
import me.mattco.serenityos.ipc.psi.api.IPCIncludePath
import me.mattco.serenityos.ipc.psi.api.IPCType

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import com.intellij.psi.search.FileTypeIndex
import com.intellij.psi.search.GlobalSearchScopes
import com.jetbrains.cidr.lang.psi.OCFile
import com.jetbrains.cidr.lang.psi.OCStructLike
import me.mattco.serenityos.idl.findChildOfType
import me.mattco.serenityos.common.findChildOfType
import me.mattco.serenityos.ipc.IPCFile
import me.mattco.serenityos.ipc.IPCFileType
import me.mattco.serenityos.ipc.psi.api.IPCEndpoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package me.mattco.serenityos.ipc.psi
import com.intellij.openapi.project.Project
import com.intellij.psi.PsiElement
import com.intellij.psi.PsiFileFactory
import me.mattco.serenityos.idl.descendantOfType
import me.mattco.serenityos.common.descendantOfType
import me.mattco.serenityos.ipc.IPCFile
import me.mattco.serenityos.ipc.IPCFileType
import me.mattco.serenityos.ipc.psi.api.IPCEndpoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import com.jetbrains.cidr.lang.psi.OCCppNamespace
import com.jetbrains.cidr.lang.psi.OCElement
import com.jetbrains.cidr.lang.psi.OCStructLike
import com.jetbrains.cidr.lang.symbols.OCResolveContext
import me.mattco.serenityos.idl.findChildrenOfType
import me.mattco.serenityos.idl.prevSiblingsOfType
import me.mattco.serenityos.common.findChildrenOfType
import me.mattco.serenityos.ipc.IPCFile
import me.mattco.serenityos.ipc.psi.IPCNamedElement
import me.mattco.serenityos.ipc.psi.api.IPCInclude
Expand Down

0 comments on commit 791701f

Please sign in to comment.