i18n: update bundle for jvm-debugger
This commit is contained in:
+5
-4
@@ -11,6 +11,7 @@ import com.intellij.debugger.streams.resolve.AppendResolver
|
||||
import com.intellij.debugger.streams.resolve.PairMapResolver
|
||||
import com.intellij.debugger.streams.trace.impl.handler.unified.DistinctTraceHandler
|
||||
import com.intellij.debugger.streams.trace.impl.interpret.SimplePeekCallTraceInterpreter
|
||||
import org.jetbrains.annotations.NonNls
|
||||
import org.jetbrains.kotlin.idea.debugger.sequence.resolve.ChunkedResolver
|
||||
import org.jetbrains.kotlin.idea.debugger.sequence.resolve.FilteredMapResolver
|
||||
import org.jetbrains.kotlin.idea.debugger.sequence.resolve.WindowedResolver
|
||||
@@ -52,16 +53,16 @@ class KotlinSequencesSupport : LibrarySupportBase() {
|
||||
addIntermediateOperationsSupport(OrderBasedOperation("windowed", WindowedResolver()))
|
||||
}
|
||||
|
||||
private fun filterOperations(vararg names: String): Array<IntermediateOperation> =
|
||||
private fun filterOperations(@NonNls vararg names: String): Array<IntermediateOperation> =
|
||||
names.map { FilterOperation(it) }.toTypedArray()
|
||||
|
||||
private fun mapOperations(vararg names: String): Array<IntermediateOperation> =
|
||||
private fun mapOperations(@NonNls vararg names: String): Array<IntermediateOperation> =
|
||||
names.map { MappingOperation(it) }.toTypedArray()
|
||||
|
||||
private fun flatMapOperations(vararg names: String): Array<IntermediateOperation> =
|
||||
private fun flatMapOperations(@NonNls vararg names: String): Array<IntermediateOperation> =
|
||||
names.map { FlatMappingOperation(it) }.toTypedArray()
|
||||
|
||||
private fun sortedOperations(vararg names: String): Array<IntermediateOperation> =
|
||||
private fun sortedOperations(@NonNls vararg names: String): Array<IntermediateOperation> =
|
||||
names.map { SortedOperation(it) }.toTypedArray()
|
||||
|
||||
private class FilterIsInstanceOperationHandler : IntermediateOperationBase(
|
||||
|
||||
+2
@@ -5,11 +5,13 @@
|
||||
|
||||
package org.jetbrains.kotlin.idea.debugger.sequence.psi.java
|
||||
|
||||
import org.jetbrains.annotations.NonNls
|
||||
import org.jetbrains.kotlin.idea.debugger.sequence.psi.CallCheckerWithNameHeuristics
|
||||
import org.jetbrains.kotlin.idea.debugger.sequence.psi.StreamCallChecker
|
||||
|
||||
class StandardLibraryCallChecker(nestedChecker: StreamCallChecker) : CallCheckerWithNameHeuristics(nestedChecker) {
|
||||
private companion object {
|
||||
@NonNls
|
||||
val TERMINATION_CALLS: Set<String> = setOf(
|
||||
"forEach", "toArray", "reduce", "collect", "min", "max", "count", "sum", "anyMatch", "allMatch", "noneMatch", "findFirst",
|
||||
"findAny", "forEachOrdered", "average", "summaryStatistics"
|
||||
|
||||
+2
@@ -5,11 +5,13 @@
|
||||
|
||||
package org.jetbrains.kotlin.idea.debugger.sequence.psi.java
|
||||
|
||||
import org.jetbrains.annotations.NonNls
|
||||
import org.jetbrains.kotlin.idea.debugger.sequence.psi.CallCheckerWithNameHeuristics
|
||||
import org.jetbrains.kotlin.idea.debugger.sequence.psi.StreamCallChecker
|
||||
|
||||
class StreamExCallChecker(nestedChecker: StreamCallChecker) : CallCheckerWithNameHeuristics(nestedChecker) {
|
||||
private companion object {
|
||||
@NonNls
|
||||
val TERMINATION_CALLS: Set<String> = setOf(
|
||||
"forEach", "toArray", "reduce", "collect", "min", "max", "count", "sum", "anyMatch", "allMatch", "noneMatch", "findFirst",
|
||||
"findAny", "forEachOrdered", "average", "summaryStatistics", "toList", "toSet", "toCollection", "toListAndThen", "toSetAndThen",
|
||||
|
||||
+2
-1
@@ -5,12 +5,13 @@
|
||||
|
||||
package org.jetbrains.kotlin.idea.debugger.sequence.psi.sequence
|
||||
|
||||
import org.jetbrains.annotations.NonNls
|
||||
import org.jetbrains.kotlin.idea.debugger.sequence.psi.CallCheckerWithNameHeuristics
|
||||
import org.jetbrains.kotlin.idea.debugger.sequence.psi.StreamCallChecker
|
||||
|
||||
class SequenceCallCheckerWithNameHeuristics(nestedChecker: StreamCallChecker) : CallCheckerWithNameHeuristics(nestedChecker) {
|
||||
private companion object {
|
||||
|
||||
@NonNls
|
||||
val TERMINATION_CALLS: Set<String> = setOf(
|
||||
"all", "any", "associate", "associateBy", "associateByTo", "associateTo", "average", "chunked", "contains", "count", "distinct",
|
||||
"distinctBy", "elementAt", "elementAtOrElse", "elementAtOrNull", "find", "findLast", "first", "firstOrNull", "fold",
|
||||
|
||||
+3
@@ -11,6 +11,7 @@ import com.intellij.debugger.streams.trace.dsl.impl.TextExpression
|
||||
import com.intellij.debugger.streams.trace.dsl.impl.VariableImpl
|
||||
import com.intellij.debugger.streams.trace.impl.handler.type.GenericType
|
||||
import com.intellij.debugger.streams.wrapper.IntermediateStreamCall
|
||||
import org.jetbrains.annotations.NonNls
|
||||
|
||||
class KotlinStatementFactory(private val peekCallFactory: PeekCallFactory) : StatementFactory {
|
||||
override fun createNewListExpression(elementType: GenericType, vararg args: Expression): Expression =
|
||||
@@ -87,6 +88,8 @@ class KotlinStatementFactory(private val peekCallFactory: PeekCallFactory) : Sta
|
||||
|
||||
override fun createNewArrayExpression(elementType: GenericType, vararg args: Expression): Expression {
|
||||
val arguments = args.joinToString { it.toCode() }
|
||||
|
||||
@NonNls
|
||||
val text = when (elementType) {
|
||||
types.BOOLEAN -> "kotlin.booleanArrayOf($arguments)"
|
||||
KotlinSequenceTypes.BYTE -> "kotlin.byteArrayOf($arguments)"
|
||||
|
||||
Reference in New Issue
Block a user