[FIR] FirRenderer: render name for scripts

A script name is important information, so it is better to render it.
This also will fix the inconsistency with redundant space after 'SCRIPT:'.
This commit is contained in:
Dmitrii Gridin
2023-09-18 16:46:59 +02:00
committed by Space Team
parent c6bb9af823
commit 12dc6b1ebc
291 changed files with 2096 additions and 2226 deletions
@@ -1,7 +1,7 @@
RAW_FIR:
FILE: [ResolvedTo(RAW_FIR)] topLevelFunctionsScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(RAW_FIR)]
SCRIPT: [ResolvedTo(RAW_FIR)] <script-topLevelFunctionsScript.kts>
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK }
@@ -14,7 +14,7 @@ FILE: [ResolvedTo(RAW_FIR)] topLevelFunctionsScript.kts
IMPORTS:
FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(RAW_FIR)]
SCRIPT: [ResolvedTo(RAW_FIR)] <script-topLevelFunctionsScript.kts>
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(RAW_FIR)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK }
@@ -27,7 +27,7 @@ FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
COMPILER_REQUIRED_ANNOTATIONS:
FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(RAW_FIR)]
SCRIPT: [ResolvedTo(RAW_FIR)] <script-topLevelFunctionsScript.kts>
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(COMPILER_REQUIRED_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK }
@@ -40,7 +40,7 @@ FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
COMPANION_GENERATION:
FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(RAW_FIR)]
SCRIPT: [ResolvedTo(RAW_FIR)] <script-topLevelFunctionsScript.kts>
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(COMPANION_GENERATION)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK }
@@ -53,7 +53,7 @@ FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
SUPER_TYPES:
FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(RAW_FIR)]
SCRIPT: [ResolvedTo(RAW_FIR)] <script-topLevelFunctionsScript.kts>
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(SUPER_TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK }
@@ -66,7 +66,7 @@ FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
TYPES:
FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(RAW_FIR)]
SCRIPT: [ResolvedTo(RAW_FIR)] <script-topLevelFunctionsScript.kts>
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public? final? [ResolvedTo(TYPES)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK }
@@ -79,7 +79,7 @@ FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
STATUS:
FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(RAW_FIR)]
SCRIPT: [ResolvedTo(RAW_FIR)] <script-topLevelFunctionsScript.kts>
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public final [ResolvedTo(STATUS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK }
@@ -92,7 +92,7 @@ FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
EXPECT_ACTUAL_MATCHING:
FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
context(<script>@kotlin.script.templates.standard.ScriptTemplateWithArgs)
SCRIPT: [ResolvedTo(RAW_FIR)]
SCRIPT: [ResolvedTo(RAW_FIR)] <script-topLevelFunctionsScript.kts>
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public final [ResolvedTo(EXPECT_ACTUAL_MATCHING)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK }
@@ -105,7 +105,7 @@ FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
ARGUMENTS_OF_ANNOTATIONS:
FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
SCRIPT: [ResolvedTo(TYPES)]
SCRIPT: [ResolvedTo(TYPES)] <script-topLevelFunctionsScript.kts>
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public final [ResolvedTo(ARGUMENTS_OF_ANNOTATIONS)] fun resolveMe(): R|kotlin/Unit| { LAZY_BLOCK }
@@ -118,7 +118,7 @@ FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
CONTRACTS:
FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
SCRIPT: [ResolvedTo(TYPES)]
SCRIPT: [ResolvedTo(TYPES)] <script-topLevelFunctionsScript.kts>
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public final [ResolvedTo(CONTRACTS)] fun resolveMe(): R|kotlin/Unit| {
@@ -133,7 +133,7 @@ FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
IMPLICIT_TYPES_BODY_RESOLVE:
FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
SCRIPT: [ResolvedTo(TYPES)]
SCRIPT: [ResolvedTo(TYPES)] <script-topLevelFunctionsScript.kts>
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public final [ResolvedTo(IMPLICIT_TYPES_BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| {
@@ -148,7 +148,7 @@ FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
ANNOTATIONS_ARGUMENTS_MAPPING:
FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
SCRIPT: [ResolvedTo(TYPES)]
SCRIPT: [ResolvedTo(TYPES)] <script-topLevelFunctionsScript.kts>
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public final [ResolvedTo(ANNOTATIONS_ARGUMENTS_MAPPING)] fun resolveMe(): R|kotlin/Unit| {
@@ -163,7 +163,7 @@ FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
BODY_RESOLVE:
FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
SCRIPT: [ResolvedTo(TYPES)]
SCRIPT: [ResolvedTo(TYPES)] <script-topLevelFunctionsScript.kts>
[ResolvedTo(RAW_FIR)] lval args: R|kotlin/Array<kotlin/String>|
public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| {
@@ -181,7 +181,7 @@ FILE: [ResolvedTo(IMPORTS)] topLevelFunctionsScript.kts
FILE RAW TO BODY:
FILE: [ResolvedTo(BODY_RESOLVE)] topLevelFunctionsScript.kts
context(<script>@R|kotlin/script/templates/standard/ScriptTemplateWithArgs|)
SCRIPT: [ResolvedTo(BODY_RESOLVE)]
SCRIPT: [ResolvedTo(BODY_RESOLVE)] <script-topLevelFunctionsScript.kts>
[ResolvedTo(BODY_RESOLVE)] lval args: R|kotlin/Array<kotlin/String>|
public final [ResolvedTo(BODY_RESOLVE)] fun resolveMe(): R|kotlin/Unit| {
@@ -194,4 +194,3 @@ FILE: [ResolvedTo(BODY_RESOLVE)] topLevelFunctionsScript.kts
public final [ResolvedTo(BODY_RESOLVE)] fun functionWithLazyBody(): R|kotlin/String| {
^functionWithLazyBody String(42)
}