Group mirai-console-intellij and mirai-console-gradle into 'tools'

This commit is contained in:
Him188 2020-09-17 21:24:13 +08:00
parent dc81835b68
commit 287b4b2995
25 changed files with 6 additions and 6 deletions

View File

@ -20,8 +20,8 @@ fun includeProject(projectPath: String, path: String? = null) {
includeProject(":mirai-console", "backend/mirai-console")
includeProject(":mirai-console.codegen", "backend/codegen")
includeProject(":mirai-console-pure", "frontend/mirai-console-pure")
includeProject(":mirai-console-intellij", "intellij-plugin")
includeProject(":mirai-console-gradle", "gradle-plugin")
includeProject(":mirai-console-intellij", "tools/intellij-plugin")
includeProject(":mirai-console-gradle", "tools/gradle-plugin")
@Suppress("ConstantConditionIf")
if (!disableOldFrontEnds) {

View File

@ -9,6 +9,7 @@
package net.mamoe.mirai.console.intellij
import net.mamoe.mirai.console.intellij.diagnostics.PluginDescriptionChecker
import org.jetbrains.kotlin.container.StorageComponentContainer
import org.jetbrains.kotlin.container.useInstance
import org.jetbrains.kotlin.descriptors.ModuleDescriptor
@ -20,6 +21,6 @@ class IDEContainerContributor : StorageComponentContainerContributor {
platform: org.jetbrains.kotlin.platform.TargetPlatform,
moduleDescriptor: ModuleDescriptor,
) {
container.useInstance(MiraiConsoleDeclarationChecker())
container.useInstance(PluginDescriptionChecker())
}
}

View File

@ -7,19 +7,18 @@
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
package net.mamoe.mirai.console.intellij
package net.mamoe.mirai.console.intellij.diagnostics
import org.jetbrains.kotlin.descriptors.DeclarationDescriptor
import org.jetbrains.kotlin.psi.KtDeclaration
import org.jetbrains.kotlin.resolve.checkers.DeclarationChecker
import org.jetbrains.kotlin.resolve.checkers.DeclarationCheckerContext
class MiraiConsoleDeclarationChecker : DeclarationChecker {
class PluginDescriptionChecker : DeclarationChecker {
override fun check(
declaration: KtDeclaration,
descriptor: DeclarationDescriptor,
context: DeclarationCheckerContext,
) {
}
}

View File

Before

Width:  |  Height:  |  Size: 491 B

After

Width:  |  Height:  |  Size: 491 B

View File

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB