IJPL-943 add "Analyze API Usage Count" action

Other changes in this commit:

- `resolveApiElement` added.

- `resolveApiField` and `resolveApiMethod` work on reference level
  => they should not go into base classes because the reference has the exact class name.

- `ApiWatcherBundle` added.

- `ApiElementNodeRenderer` can now render symbolic reference's presentable name.

GitOrigin-RevId: 2d7a694971dc25f2c737d314ed422a2c174a395c
This commit is contained in:
Daniil Ovchinnikov
2024-04-02 00:24:18 +02:00
committed by intellij-monorepo-bot
parent 0c5dae7421
commit e18fcc8d0f
2 changed files with 5 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ fun String.packageName(): String {
}
}
internal fun String.dottedClassName(): String {
fun String.dottedClassName(): String {
return replace('/', '.')
}

View File

@@ -1,6 +1,8 @@
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.tools.apiDump
import org.objectweb.asm.Type
class API(
val publicApi: List<ApiClass>,
val privateApi: Set<String>,
@@ -21,6 +23,8 @@ data class ApiMember(
val flags: ApiFlags,
)
val ApiMember.isMethod: Boolean get() = Type.getType(ref.descriptor).sort == Type.METHOD
data class ApiRef(
val name: String,
val descriptor: String,