mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
Kotlin: Make with an inline function
This commit is contained in:
@@ -35,7 +35,7 @@ open class KotlinFileExtractor(
|
||||
genericSpecialisationsExtracted: MutableSet<String>
|
||||
): KotlinUsesExtractor(logger, tw, dependencyCollector, externalClassExtractor, primitiveTypeMapping, pluginContext, genericSpecialisationsExtracted) {
|
||||
|
||||
fun <T> with(kind: String, element: IrElement, f: () -> T): T {
|
||||
inline fun <T> with(kind: String, element: IrElement, f: () -> T): T {
|
||||
try {
|
||||
return f()
|
||||
} catch(exception: Exception) {
|
||||
|
||||
Reference in New Issue
Block a user