[Analysis API] Add tests for foreign values
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
ForeignValue[name: foo_DebugLabel; isMutated: false; displayText: foo_DebugLabel]
|
||||
lval foo_DebugLabel: R|kotlin/String!|
|
||||
R|kotlin/String!|
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
MODULE_FRAGMENT
|
||||
FILE fqName:<root> fileName:fragment.kt
|
||||
CLASS CLASS name:CodeFragment modality:FINAL visibility:public superTypes:[kotlin.Any]
|
||||
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:<root>.CodeFragment
|
||||
CONSTRUCTOR visibility:public <> () returnType:<root>.CodeFragment [primary]
|
||||
BLOCK_BODY
|
||||
DELEGATING_CONSTRUCTOR_CALL 'public constructor <init> () [primary] declared in kotlin.Any'
|
||||
FUN name:run visibility:public modality:FINAL <> (p0:@[FlexibleNullability] kotlin.String?) returnType:@[FlexibleNullability] kotlin.String?
|
||||
VALUE_PARAMETER name:p0 index:0 type:@[FlexibleNullability] kotlin.String?
|
||||
EXPRESSION_BODY
|
||||
BLOCK type=@[FlexibleNullability] kotlin.String? origin=null
|
||||
GET_VAR 'p0: @[FlexibleNullability] kotlin.String? declared in <root>.CodeFragment.run' type=@[FlexibleNullability] kotlin.String? origin=null
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// MODULE: context
|
||||
|
||||
// FILE: context.kt
|
||||
fun test() {
|
||||
<caret_context>call("foo")
|
||||
}
|
||||
|
||||
fun call(text: String) {}
|
||||
|
||||
|
||||
// MODULE: main
|
||||
// MODULE_KIND: CodeFragment
|
||||
// CONTEXT_MODULE: context
|
||||
|
||||
// FILE: fragment.kt
|
||||
// CODE_FRAGMENT_KIND: EXPRESSION
|
||||
// CODE_FRAGMENT_FOREIGN_VALUE: foo_DebugLabel(Ljava/lang/String;)
|
||||
<caret>foo_DebugLabel
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
public final class CodeFragment {
|
||||
// source: 'fragment.kt'
|
||||
public method <init>(): void
|
||||
public final static method run(p0: java.lang.String): java.lang.String
|
||||
}
|
||||
Reference in New Issue
Block a user