mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-10 18:40:15 +08:00
Group mirai-console-intellij and mirai-console-gradle into 'tools'
This commit is contained in:
parent
dc81835b68
commit
287b4b2995
@ -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) {
|
||||
|
@ -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())
|
||||
}
|
||||
}
|
@ -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,
|
||||
) {
|
||||
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 491 B After Width: | Height: | Size: 491 B |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Loading…
Reference in New Issue
Block a user