Skip to content

Commit

Permalink
[Tests] Add additional tests regarding binary expressions for KtForMa…
Browse files Browse the repository at this point in the history
…pping
  • Loading branch information
TomatorCZ authored and Space Team committed Feb 13, 2025
1 parent 958579f commit 1d60469
Show file tree
Hide file tree
Showing 29 changed files with 745 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
KtFile: 'stringConcatenation.kt'
null

KtPackageDirective(0,0): ''
null

KtImportList(0,0): ''
null

KtNamedFunction(0,47): 'fun check() {'
null

KtParameterList(9,11): '()'
null

KtBlockExpression(12,47): '{'
null

KtProperty(18,45): 'val value = "1" + "2" + "3"'
null

KtBinaryExpression(30,45): '"1" + "2" + "3"'
KaSuccessCallInfo:
call = KaSimpleFunctionCall:
argumentMapping = {
"3" -> (KaVariableSignature:
name = other
receiverType = null
returnType = kotlin.Any?
symbol = other: kotlin.Any?
callableId = null)
}
isImplicitInvoke = false
partiallyAppliedSymbol = KaPartiallyAppliedSymbol:
dispatchReceiver = KaExplicitReceiverValue:
expression = "1" + "2"
isSafeNavigation = false
type = kotlin.String
extensionReceiver = null
signature = KaFunctionSignature:
receiverType = null
returnType = kotlin.String
symbol = kotlin/String.plus(<dispatch receiver>: kotlin.String, other: kotlin.Any?): kotlin.String
valueParameters = [
KaVariableSignature:
name = other
receiverType = null
returnType = kotlin.Any?
symbol = other: kotlin.Any?
callableId = null
]
callableId = kotlin/String.plus
typeArgumentsMapping = {}

KtBinaryExpression(30,39): '"1" + "2"'
KaSuccessCallInfo:
call = KaSimpleFunctionCall:
argumentMapping = {
"2" -> (KaVariableSignature:
name = other
receiverType = null
returnType = kotlin.Any?
symbol = other: kotlin.Any?
callableId = null)
}
isImplicitInvoke = false
partiallyAppliedSymbol = KaPartiallyAppliedSymbol:
dispatchReceiver = KaExplicitReceiverValue:
expression = "1"
isSafeNavigation = false
type = kotlin.String
extensionReceiver = null
signature = KaFunctionSignature:
receiverType = null
returnType = kotlin.String
symbol = kotlin/String.plus(<dispatch receiver>: kotlin.String, other: kotlin.Any?): kotlin.String
valueParameters = [
KaVariableSignature:
name = other
receiverType = null
returnType = kotlin.Any?
symbol = other: kotlin.Any?
callableId = null
]
callableId = kotlin/String.plus
typeArgumentsMapping = {}

KtStringTemplateExpression(30,33): '"1"'
null

KtLiteralStringTemplateEntry(31,32): '1'
null

KtOperationReferenceExpression(34,35): '+'
KaSuccessCallInfo:
call = KaSimpleFunctionCall:
argumentMapping = {
"2" -> (KaVariableSignature:
name = other
receiverType = null
returnType = kotlin.Any?
symbol = other: kotlin.Any?
callableId = null)
}
isImplicitInvoke = false
partiallyAppliedSymbol = KaPartiallyAppliedSymbol:
dispatchReceiver = KaExplicitReceiverValue:
expression = "1"
isSafeNavigation = false
type = kotlin.String
extensionReceiver = null
signature = KaFunctionSignature:
receiverType = null
returnType = kotlin.String
symbol = kotlin/String.plus(<dispatch receiver>: kotlin.String, other: kotlin.Any?): kotlin.String
valueParameters = [
KaVariableSignature:
name = other
receiverType = null
returnType = kotlin.Any?
symbol = other: kotlin.Any?
callableId = null
]
callableId = kotlin/String.plus
typeArgumentsMapping = {}

KtStringTemplateExpression(36,39): '"2"'
null

KtLiteralStringTemplateEntry(37,38): '2'
null

KtOperationReferenceExpression(40,41): '+'
KaSuccessCallInfo:
call = KaSimpleFunctionCall:
argumentMapping = {
"3" -> (KaVariableSignature:
name = other
receiverType = null
returnType = kotlin.Any?
symbol = other: kotlin.Any?
callableId = null)
}
isImplicitInvoke = false
partiallyAppliedSymbol = KaPartiallyAppliedSymbol:
dispatchReceiver = KaExplicitReceiverValue:
expression = "1" + "2"
isSafeNavigation = false
type = kotlin.String
extensionReceiver = null
signature = KaFunctionSignature:
receiverType = null
returnType = kotlin.String
symbol = kotlin/String.plus(<dispatch receiver>: kotlin.String, other: kotlin.Any?): kotlin.String
valueParameters = [
KaVariableSignature:
name = other
receiverType = null
returnType = kotlin.Any?
symbol = other: kotlin.Any?
callableId = null
]
callableId = kotlin/String.plus
typeArgumentsMapping = {}

KtStringTemplateExpression(42,45): '"3"'
null

KtLiteralStringTemplateEntry(43,44): '3'
null
Loading

0 comments on commit 1d60469

Please sign in to comment.